Skip to content

Commit

Permalink
Fix -Werror=format-security compiler option
Browse files Browse the repository at this point in the history
Noticed under Ubuntu kernel builds we should be passing a
format specifier and the string, not just the string.
  • Loading branch information
behlendorf committed Jul 14, 2010
1 parent f0ff89f commit d0bd694
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module/spl/spl-thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ __thread_create(caddr_t stk, size_t stksize, thread_func_t func,
tp->tp_state = state;
tp->tp_pri = pri;

tsk = kthread_create(thread_generic_wrapper, (void *)tp, tp->tp_name);
tsk = kthread_create(thread_generic_wrapper, (void *)tp,
"%s", tp->tp_name);
if (IS_ERR(tsk)) {
CERROR("Failed to create thread: %ld\n", PTR_ERR(tsk));
RETURN(NULL);
Expand Down

0 comments on commit d0bd694

Please sign in to comment.