Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/xen Use format string for the device name
details: https://anonhg.NetBSD.org/src/rev/91f047b6200b
branches: trunk
changeset: 765557:91f047b6200b
user: joerg <joerg%NetBSD.org@localhost>
date: Mon May 30 14:34:58 2011 +0000
description:
Use format string for the device name
diffstat:
sys/arch/xen/xen/xennetback_xenbus.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 3751ceda9fd9 -r 91f047b6200b sys/arch/xen/xen/xennetback_xenbus.c
--- a/sys/arch/xen/xen/xennetback_xenbus.c Mon May 30 14:20:48 2011 +0000
+++ b/sys/arch/xen/xen/xennetback_xenbus.c Mon May 30 14:34:58 2011 +0000
@@ -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",
Home |
Main Index |
Thread Index |
Old Index