Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Don't use the device name as format string.
details: https://anonhg.NetBSD.org/src/rev/1187eabbf286
branches: trunk
changeset: 765267:1187eabbf286
user: joerg <joerg%NetBSD.org@localhost>
date: Mon May 23 21:30:56 2011 +0000
description:
Don't use the device name as format string.
diffstat:
sys/dev/vnd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r adf2730f890d -r 1187eabbf286 sys/dev/vnd.c
--- a/sys/dev/vnd.c Mon May 23 21:18:55 2011 +0000
+++ b/sys/dev/vnd.c Mon May 23 21:30:56 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vnd.c,v 1.215 2011/02/08 20:20:26 rmind Exp $ */
+/* $NetBSD: vnd.c,v 1.216 2011/05/23 21:30:56 joerg Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2008 The NetBSD Foundation, Inc.
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.215 2011/02/08 20:20:26 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.216 2011/05/23 21:30:56 joerg Exp $");
#if defined(_KERNEL_OPT)
#include "opt_vnd.h"
@@ -1271,7 +1271,7 @@
/* create the kernel thread, wait for it to be up */
error = kthread_create(PRI_NONE, 0, NULL, vndthread, vnd,
- &vnd->sc_kthread, device_xname(vnd->sc_dev));
+ &vnd->sc_kthread, "%s", device_xname(vnd->sc_dev));
if (error)
goto close_and_exit;
while ((vnd->sc_flags & VNF_KTHREAD) == 0) {
Home |
Main Index |
Thread Index |
Old Index