Module Name: src Committed By: joerg Date: Mon May 23 21:30:56 UTC 2011
Modified Files: src/sys/dev: vnd.c Log Message: Don't use the device name as format string. To generate a diff of this commit: cvs rdiff -u -r1.215 -r1.216 src/sys/dev/vnd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/vnd.c diff -u src/sys/dev/vnd.c:1.215 src/sys/dev/vnd.c:1.216 --- src/sys/dev/vnd.c:1.215 Tue Feb 8 20:20:26 2011 +++ src/sys/dev/vnd.c Mon May 23 21:30:56 2011 @@ -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) {