Module Name:    src
Committed By:   mlelstv
Date:           Sun Jun 13 07:51:09 UTC 2021

Modified Files:
        src/sys/dev/usb: uaudio.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.170 -r1.171 src/sys/dev/usb/uaudio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/uaudio.c
diff -u src/sys/dev/usb/uaudio.c:1.170 src/sys/dev/usb/uaudio.c:1.171
--- src/sys/dev/usb/uaudio.c:1.170	Sun Jun 13 07:49:43 2021
+++ src/sys/dev/usb/uaudio.c	Sun Jun 13 07:51:09 2021
@@ -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
 

Reply via email to