summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_process.c
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2010-06-11 19:27:21 +0000
committeravg <avg@FreeBSD.org>2010-06-11 19:27:21 +0000
commit324886002f85f17304dae0b8970911d2c9f1a6f4 (patch)
tree2f7c2ec32c10d5bc3aea11e8861a695b7dd807b2 /sys/dev/usb/usb_process.c
parenta674331779d7d47acd30342c7763589ace0b1fea (diff)
downloadFreeBSD-src-324886002f85f17304dae0b8970911d2c9f1a6f4.zip
FreeBSD-src-324886002f85f17304dae0b8970911d2c9f1a6f4.tar.gz
fix a few cases where a string is passed via format argument instead of
via %s Most of the cases looked harmless, but this is done for the sake of correctness. In one case it even allowed to drop an intermediate buffer. Found by: clang MFC after: 2 week
Diffstat (limited to 'sys/dev/usb/usb_process.c')
-rw-r--r--sys/dev/usb/usb_process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_process.c b/sys/dev/usb/usb_process.c
index 53461d2..d6915ba 100644
--- a/sys/dev/usb/usb_process.c
+++ b/sys/dev/usb/usb_process.c
@@ -221,7 +221,7 @@ usb_proc_create(struct usb_process *up, struct mtx *p_mtx,
cv_init(&up->up_drain, "usbdrain");
if (USB_THREAD_CREATE(&usb_process, up,
- &up->up_ptr, pmesg)) {
+ &up->up_ptr, "%s", pmesg)) {
DPRINTFN(0, "Unable to create USB process.");
up->up_ptr = NULL;
goto error;
OpenPOWER on IntegriCloud