From 4f9b8d73fef460ebebe51e2f540e803bc04ad36f Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 23 May 2011 21:30:56 +0000 Subject: [PATCH] Don't use the device name as format string. --- sys/dev/vnd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c index 31c52757568d..a0255af7e1ed 100644 --- a/sys/dev/vnd.c +++ b/sys/dev/vnd.c @@ -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 -__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 @@ vndioctl(dev_t dev, u_long cmd, void *data, int flag, struct lwp *l) /* 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) {