Module Name: src
Committed By: isaki
Date: Fri Apr 17 07:48:35 UTC 2020
Modified Files:
src/sys/dev/audio: audio.c
Log Message:
Improve diagnostic messages.
To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/dev/audio/audio.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/audio/audio.c
diff -u src/sys/dev/audio/audio.c:1.65 src/sys/dev/audio/audio.c:1.66
--- src/sys/dev/audio/audio.c:1.65 Thu Mar 26 13:32:03 2020
+++ src/sys/dev/audio/audio.c Fri Apr 17 07:48:35 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.65 2020/03/26 13:32:03 isaki Exp $ */
+/* $NetBSD: audio.c,v 1.66 2020/04/17 07:48:35 isaki Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -138,7 +138,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.65 2020/03/26 13:32:03 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.66 2020/04/17 07:48:35 isaki Exp $");
#ifdef _KERNEL_OPT
#include "audio.h"
@@ -5468,7 +5468,9 @@ audio_pintr(void *arg)
return;
if (sc->sc_pbusy == false) {
#if defined(DIAGNOSTIC)
- device_printf(sc->sc_dev, "stray interrupt\n");
+ device_printf(sc->sc_dev,
+ "DIAGNOSTIC: %s raised stray interrupt\n",
+ device_xname(sc->hw_dev));
#endif
return;
}
@@ -5737,7 +5739,9 @@ audio_rintr(void *arg)
return;
if (sc->sc_rbusy == false) {
#if defined(DIAGNOSTIC)
- device_printf(sc->sc_dev, "stray interrupt\n");
+ device_printf(sc->sc_dev,
+ "DIAGNOSTIC: %s raised stray interrupt\n",
+ device_xname(sc->hw_dev));
#endif
return;
}