From 1f723035c85b160dc5b030d63d53e64d643b2620 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Sat, 24 Mar 2001 06:26:47 +0000 Subject: [PATCH] Use (..., "%s", foo) instead of (..., foo) to avoid a warning about a non-constant format string when calling kthread_create() to create an ithread. --- sys/kern/kern_intr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c index b127eedeb45..ad64715ed9e 100644 --- a/sys/kern/kern_intr.c +++ b/sys/kern/kern_intr.c @@ -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);