diff options
author | Brian Behlendorf <[email protected]> | 2010-07-14 11:53:57 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2010-07-14 11:53:57 -0700 |
commit | d0bd694ca93b7e43dc6aa87a2dd39d51ee3478ea (patch) | |
tree | 7aca7822d0bbce03e46f4fee9da4ece5c6c55110 /module | |
parent | f0ff89fc86873a96a3f60e86e1694775b664663e (diff) |
Fix -Werror=format-security compiler option
Noticed under Ubuntu kernel builds we should be passing a
format specifier and the string, not just the string.
Diffstat (limited to 'module')
-rw-r--r-- | module/spl/spl-thread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/spl/spl-thread.c b/module/spl/spl-thread.c index 1345890ed..bce912c4d 100644 --- a/module/spl/spl-thread.c +++ b/module/spl/spl-thread.c @@ -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); |