Module Name: src
Committed By: joerg
Date: Mon May 30 13:03:56 UTC 2011
Modified Files:
src/sys/arch/xen/xen: if_xennet_xenbus.c
Log Message:
Use proper format string
To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/arch/xen/xen/if_xennet_xenbus.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/arch/xen/xen/if_xennet_xenbus.c
diff -u src/sys/arch/xen/xen/if_xennet_xenbus.c:1.50 src/sys/arch/xen/xen/if_xennet_xenbus.c:1.51
--- src/sys/arch/xen/xen/if_xennet_xenbus.c:1.50 Mon Apr 25 17:01:54 2011
+++ src/sys/arch/xen/xen/if_xennet_xenbus.c Mon May 30 13:03:56 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: if_xennet_xenbus.c,v 1.50 2011/04/25 17:01:54 jym Exp $ */
+/* $NetBSD: if_xennet_xenbus.c,v 1.51 2011/05/30 13:03:56 joerg Exp $ */
/*
* Copyright (c) 2006 Manuel Bouyer.
@@ -85,7 +85,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_xennet_xenbus.c,v 1.50 2011/04/25 17:01:54 jym Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_xennet_xenbus.c,v 1.51 2011/05/30 13:03:56 joerg Exp $");
#include "opt_xen.h"
#include "opt_nfs_boot.h"
@@ -502,7 +502,7 @@
if (xbt == NULL)
return ENOMEM;
error = xenbus_printf(xbt, sc->sc_xbusd->xbusd_path,
- "vifname", device_xname(sc->sc_dev));
+ "vifname", "%s", device_xname(sc->sc_dev));
if (error) {
errmsg = "vifname";
goto abort_transaction;