Pass a format string to panic() and to taskqueue_start_threads().
Found with: clang
This commit is contained in:
parent
6e634bb80f
commit
910a5e18ba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213791
@ -48,7 +48,7 @@ vcmn_err(int ce, const char *fmt, va_list adx)
|
||||
panic("Solaris: unknown severity level");
|
||||
}
|
||||
if (ce == CE_PANIC)
|
||||
panic(buf);
|
||||
panic("%s", buf);
|
||||
if (ce != CE_IGNORE)
|
||||
vprintf(buf, adx);
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ taskq_create(const char *name, int nthreads, pri_t pri, int minalloc __unused,
|
||||
tq = kmem_alloc(sizeof(*tq), KM_SLEEP);
|
||||
tq->tq_queue = taskqueue_create(name, M_WAITOK, taskqueue_thread_enqueue,
|
||||
&tq->tq_queue);
|
||||
(void) taskqueue_start_threads(&tq->tq_queue, nthreads, pri, name);
|
||||
(void) taskqueue_start_threads(&tq->tq_queue, nthreads, pri, "%s", name);
|
||||
|
||||
return ((taskq_t *)tq);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user