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 Fix bad pasto cooking: xennet backend is no...
details: https://anonhg.NetBSD.org/src/rev/ec751c46f209
branches: trunk
changeset: 761017:ec751c46f209
user: jym <jym%NetBSD.org@localhost>
date: Tue Jan 18 21:34:31 2011 +0000
description:
Fix bad pasto cooking: xennet backend is not xbdback: use
aprint_error_ifnet() with the proper ifnet device for error messages.
diffstat:
sys/arch/xen/xen/xennetback_xenbus.c | 26 ++++++++++++++++----------
1 files changed, 16 insertions(+), 10 deletions(-)
diffs (65 lines):
diff -r 949ab877b32a -r ec751c46f209 sys/arch/xen/xen/xennetback_xenbus.c
--- a/sys/arch/xen/xen/xennetback_xenbus.c Tue Jan 18 21:15:54 2011 +0000
+++ b/sys/arch/xen/xen/xennetback_xenbus.c Tue Jan 18 21:34:31 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xennetback_xenbus.c,v 1.37 2011/01/11 23:22:19 jym Exp $ */
+/* $NetBSD: xennetback_xenbus.c,v 1.38 2011/01/18 21:34:31 jym Exp $ */
/*
* Copyright (c) 2006 Manuel Bouyer.
@@ -319,40 +319,46 @@
do {
xbt = xenbus_transaction_start();
if (xbt == NULL) {
- printf("xbdback %s: can't start transaction\n",
+ aprint_error_ifnet(ifp,
+ "%s: can't start transaction\n",
xbusd->xbusd_path);
goto fail;
}
err = xenbus_printf(xbt, xbusd->xbusd_path,
"vifname", ifp->if_xname);
if (err) {
- printf("xbdback: failed to write %s/vifname: "
- "%d\n", xbusd->xbusd_path, err);
+ aprint_error_ifnet(ifp,
+ "failed to write %s/vifname: %d\n",
+ xbusd->xbusd_path, err);
goto abort_xbt;
}
err = xenbus_printf(xbt, xbusd->xbusd_path,
"feature-rx-copy", "%d", 1);
if (err) {
- printf("xbdback: failed to write %s/feature-rx-copy: "
- "%d\n", xbusd->xbusd_path, err);
+ aprint_error_ifnet(ifp,
+ "failed to write %s/feature-rx-copy: %d\n",
+ xbusd->xbusd_path, err);
goto abort_xbt;
}
err = xenbus_printf(xbt, xbusd->xbusd_path,
"feature-rx-flip", "%d", 1);
if (err) {
- printf("xbdback: failed to write %s/feature-rx-flip: "
- "%d\n", xbusd->xbusd_path, err);
+ aprint_error_ifnet(ifp,
+ "failed to write %s/feature-rx-flip: %d\n",
+ xbusd->xbusd_path, err);
goto abort_xbt;
}
} while ((err = xenbus_transaction_end(xbt, 0)) == EAGAIN);
if (err) {
- printf("xbdback %s: can't end transaction: %d\n",
+ aprint_error_ifnet(ifp,
+ "%s: can't end transaction: %d\n",
xbusd->xbusd_path, err);
}
err = xenbus_switch_state(xbusd, NULL, XenbusStateInitWait);
if (err) {
- printf("failed to switch state on %s: %d\n",
+ aprint_error_ifnet(ifp,
+ "failed to switch state on %s: %d\n",
xbusd->xbusd_path, err);
goto fail;
}
Home |
Main Index |
Thread Index |
Old Index