Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/audio Improve diagnostic messages.



details:   https://anonhg.NetBSD.org/src/rev/0d5d64331743
branches:  trunk
changeset: 930915:0d5d64331743
user:      isaki <isaki%NetBSD.org@localhost>
date:      Fri Apr 17 07:48:35 2020 +0000

description:
Improve diagnostic messages.

diffstat:

 sys/dev/audio/audio.c |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r 4816f9b92c9a -r 0d5d64331743 sys/dev/audio/audio.c
--- a/sys/dev/audio/audio.c     Fri Apr 17 03:15:50 2020 +0000
+++ b/sys/dev/audio/audio.c     Fri Apr 17 07:48:35 2020 +0000
@@ -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 @@
                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 @@
                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;
        }



Home | Main Index | Thread Index | Old Index