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/292c0176e8b8
branches: trunk
changeset: 983880:292c0176e8b8
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 7a75e06313bf -r 292c0176e8b8 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 @@
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 @@
/* 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