Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Don't use the name of the task queue as format s...



details:   https://anonhg.NetBSD.org/src/rev/5b1dbcaa7a38
branches:  trunk
changeset: 765271:5b1dbcaa7a38
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon May 23 21:50:44 2011 +0000

description:
Don't use the name of the task queue as format string

diffstat:

 sys/dev/usb/usb.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 86c95b156e0d -r 5b1dbcaa7a38 sys/dev/usb/usb.c
--- a/sys/dev/usb/usb.c Mon May 23 21:49:35 2011 +0000
+++ b/sys/dev/usb/usb.c Mon May 23 21:50:44 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usb.c,v 1.123 2010/11/03 22:34:24 dyoung Exp $ */
+/*     $NetBSD: usb.c,v 1.124 2011/05/23 21:50:44 joerg Exp $  */
 
 /*
  * Copyright (c) 1998, 2002, 2008 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usb.c,v 1.123 2010/11/03 22:34:24 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb.c,v 1.124 2011/05/23 21:50:44 joerg Exp $");
 
 #include "opt_compat_netbsd.h"
 
@@ -302,7 +302,7 @@
                taskq->taskcreated = 1;
                taskq->name = taskq_names[i];
                if (kthread_create(PRI_NONE, 0, NULL, usb_task_thread,
-                   taskq, &taskq->task_thread_lwp, taskq->name)) {
+                   taskq, &taskq->task_thread_lwp, "%s", taskq->name)) {
                        printf("unable to create task thread: %s\n", taskq->name);
                        panic("usb_create_event_thread task");
                }



Home | Main Index | Thread Index | Old Index