Use (..., "%s", foo) instead of (..., foo) to avoid a warning about a
non-constant format string when calling kthread_create() to create an ithread.
This commit is contained in:
parent
e3813eeec8
commit
940852c0c7
@ -184,7 +184,7 @@ ithread_create(struct ithd **ithread, int vector, int flags,
|
||||
va_end(ap);
|
||||
|
||||
error = kthread_create(ithread_loop, ithd, &p, RFSTOPPED | RFHIGHPID,
|
||||
ithd->it_name);
|
||||
"%s", ithd->it_name);
|
||||
if (error) {
|
||||
free(ithd, M_ITHREAD);
|
||||
return (error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user