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:
John Baldwin 2001-03-24 06:26:47 +00:00
parent 5e115a7e04
commit 1f723035c8
1 changed files with 1 additions and 1 deletions

View File

@ -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);