Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Make the driver a little less talkative on errors.



details:   https://anonhg.NetBSD.org/src/rev/15461ec0ff7c
branches:  trunk
changeset: 519888:15461ec0ff7c
user:      augustss <augustss%NetBSD.org@localhost>
date:      Sat Dec 29 20:50:16 2001 +0000

description:
Make the driver a little less talkative on errors.

diffstat:

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

diffs (22 lines):

diff -r 9279fdf5b1c0 -r 15461ec0ff7c sys/dev/usb/uhidev.c
--- a/sys/dev/usb/uhidev.c      Sat Dec 29 20:44:22 2001 +0000
+++ b/sys/dev/usb/uhidev.c      Sat Dec 29 20:50:16 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhidev.c,v 1.2 2001/12/29 18:56:52 augustss Exp $      */
+/*     $NetBSD: uhidev.c,v 1.3 2001/12/29 20:50:16 augustss Exp $      */
 
 /*
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -363,10 +363,8 @@
                return;
 
        if (status != USBD_NORMAL_COMPLETION) {
-#ifdef DIAGNOSTIC
-               printf("%s: interrupr status=%d\n", USBDEVNAME(sc->sc_dev),
-                      status);
-#endif
+               DPRINTF(("%s: interrupt status=%d\n", USBDEVNAME(sc->sc_dev),
+                        status));
                usbd_clear_endpoint_stall_async(sc->sc_intrpipe);
                return;
        }



Home | Main Index | Thread Index | Old Index