Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Don't use aprint* for non-autoconf errors. Also ...



details:   https://anonhg.NetBSD.org/src/rev/96cc223e4951
branches:  trunk
changeset: 379637:96cc223e4951
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Jun 13 07:51:09 2021 +0000

description:
Don't use aprint* for non-autoconf errors. Also print status value.

diffstat:

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

diffs (42 lines):

diff -r 7819e929231c -r 96cc223e4951 sys/dev/usb/uaudio.c
--- a/sys/dev/usb/uaudio.c      Sun Jun 13 07:49:43 2021 +0000
+++ b/sys/dev/usb/uaudio.c      Sun Jun 13 07:51:09 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uaudio.c,v 1.170 2021/06/13 07:49:43 mlelstv Exp $     */
+/*     $NetBSD: uaudio.c,v 1.171 2021/06/13 07:51:09 mlelstv Exp $     */
 
 /*
  * Copyright (c) 1999, 2012 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.170 2021/06/13 07:49:43 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.171 2021/06/13 07:51:09 mlelstv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -2835,8 +2835,9 @@ uaudio_chan_pintr(struct usbd_xfer *xfer
                    count, ch->transferred);
 #ifdef DIAGNOSTIC
        if (count != cb->size) {
-               aprint_error("uaudio_chan_pintr: count(%d) != size(%d)\n",
-                      count, cb->size);
+               device_printf(ch->sc->sc_dev,
+                   "uaudio_chan_pintr: count(%d) != size(%d), status(%d)\n",
+                   count, cb->size, status);
        }
 #endif
 
@@ -2918,8 +2919,9 @@ uaudio_chan_rintr(struct usbd_xfer *xfer
        /* count < cb->size is normal for asynchronous source */
 #ifdef DIAGNOSTIC
        if (count > cb->size) {
-               aprint_error("uaudio_chan_rintr: count(%d) > size(%d)\n",
-                      count, cb->size);
+               device_printf(ch->sc->sc_dev,
+                   "uaudio_chan_rintr: count(%d) > size(%d) status(%d)\n",
+                   count, cb->size, status);
        }
 #endif
 



Home | Main Index | Thread Index | Old Index