Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Can't use usbd_errstr in USBHIST_LOG as vmstat(1...



details:   https://anonhg.NetBSD.org/src/rev/bc6aed8ba45a
branches:  trunk
changeset: 342441:bc6aed8ba45a
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Dec 22 13:37:01 2015 +0000

description:
Can't use usbd_errstr in USBHIST_LOG as vmstat(1) doesn't like it

diffstat:

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

diffs (28 lines):

diff -r 9b89cb238903 -r bc6aed8ba45a sys/dev/usb/usbdi.c
--- a/sys/dev/usb/usbdi.c       Tue Dec 22 11:40:07 2015 +0000
+++ b/sys/dev/usb/usbdi.c       Tue Dec 22 13:37:01 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbdi.c,v 1.165 2015/09/26 13:59:28 skrll Exp $        */
+/*     $NetBSD: usbdi.c,v 1.166 2015/12/22 13:37:01 skrll Exp $        */
 
 /*
  * Copyright (c) 1998, 2012 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.165 2015/09/26 13:59:28 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.166 2015/12/22 13:37:01 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1114,8 +1114,7 @@
 
  bad:
        if (err) {
-               USBHIST_LOG(usbdebug, "returning err = %s",
-                   usbd_errstr(err), 0, 0, 0);
+               USBHIST_LOG(usbdebug, "returning err = %d", err, 0, 0, 0);
        }
        usbd_free_xfer(xfer);
        return (err);



Home | Main Index | Thread Index | Old Index