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.
This commit is contained in:
parent
f0ff89fc86
commit
d0bd694ca9
|
@ -123,7 +123,8 @@ __thread_create(caddr_t stk, size_t stksize, thread_func_t func,
|
||||||
tp->tp_state = state;
|
tp->tp_state = state;
|
||||||
tp->tp_pri = pri;
|
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)) {
|
if (IS_ERR(tsk)) {
|
||||||
CERROR("Failed to create thread: %ld\n", PTR_ERR(tsk));
|
CERROR("Failed to create thread: %ld\n", PTR_ERR(tsk));
|
||||||
RETURN(NULL);
|
RETURN(NULL);
|
||||||
|
|
Loading…
Reference in New Issue