Module Name:    src
Committed By:   joerg
Date:           Mon May 30 14:34:59 UTC 2011

Modified Files:
        src/sys/arch/xen/xen: xennetback_xenbus.c

Log Message:
Use format string for the device name


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/xen/xen/xennetback_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/xennetback_xenbus.c
diff -u src/sys/arch/xen/xen/xennetback_xenbus.c:1.45 src/sys/arch/xen/xen/xennetback_xenbus.c:1.46
--- src/sys/arch/xen/xen/xennetback_xenbus.c:1.45	Fri Apr 29 22:58:46 2011
+++ src/sys/arch/xen/xen/xennetback_xenbus.c	Mon May 30 14:34:58 2011
@@ -1,4 +1,4 @@
-/*      $NetBSD: xennetback_xenbus.c,v 1.45 2011/04/29 22:58:46 jym Exp $      */
+/*      $NetBSD: xennetback_xenbus.c,v 1.46 2011/05/30 14:34:58 joerg Exp $      */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xennetback_xenbus.c,v 1.45 2011/04/29 22:58:46 jym Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xennetback_xenbus.c,v 1.46 2011/05/30 14:34:58 joerg Exp $");
 
 #include "opt_xen.h"
 
@@ -328,7 +328,7 @@
 			goto fail;
 		}
 		err = xenbus_printf(xbt, xbusd->xbusd_path,
-		    "vifname", ifp->if_xname);
+		    "vifname", "%s", ifp->if_xname);
 		if (err) {
 			aprint_error_ifnet(ifp,
 			    "failed to write %s/vifname: %d\n",

Reply via email to