Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Use usbd_errstr instead of printing non-errno(2)...



details:   https://anonhg.NetBSD.org/src/rev/a4e64563eaf4
branches:  trunk
changeset: 789544:a4e64563eaf4
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Wed Aug 21 18:11:31 2013 +0000

description:
Use usbd_errstr instead of printing non-errno(2) error code.

diffstat:

 sys/dev/usb/usb.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 824be2bae357 -r a4e64563eaf4 sys/dev/usb/usb.c
--- a/sys/dev/usb/usb.c Wed Aug 21 18:08:29 2013 +0000
+++ b/sys/dev/usb/usb.c Wed Aug 21 18:11:31 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usb.c,v 1.141 2013/08/21 17:59:40 jakllsch Exp $       */
+/*     $NetBSD: usb.c,v 1.142 2013/08/21 18:11:31 jakllsch Exp $       */
 
 /*
  * Copyright (c) 1998, 2002, 2008, 2012 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usb.c,v 1.141 2013/08/21 17:59:40 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb.c,v 1.142 2013/08/21 18:11:31 jakllsch Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -312,8 +312,8 @@
                        dev->hub->explore(sc->sc_bus->root_hub);
 #endif
        } else {
-               aprint_error("%s: root hub problem, error=%d\n",
-                            device_xname(self), err);
+               aprint_error("%s: root hub problem, error=%s\n",
+                            device_xname(self), usbd_errstr(err));
                sc->sc_dying = 1;
        }
 



Home | Main Index | Thread Index | Old Index