Hi,

On my B&W G3 (macppc), awacs(4) gets me easily spammed whenever
sounds starts/stops/pauses/etc. with the following output:

    trigger_input 0xe5f9b000 0xe5faa000 0x3000

It just seems to be a missing DPRINTF in awacs_trigger_intput(),
which awacs_trigger_output() has.

The following diff fixes the problem for me (i.e: don't print
that unless AWACS_DEBUG is defined).

Cheers,
Donovan.

Index: awacs.c
===================================================================
RCS file: /cvs/src/sys/arch/macppc/dev/awacs.c,v
retrieving revision 1.25
diff -u -p -r1.25 awacs.c
--- awacs.c     15 Jul 2010 03:43:11 -0000      1.25
+++ awacs.c     3 Sep 2011 09:18:32 -0000
@@ -1072,7 +1072,7 @@ awacs_trigger_input(void *h, void *start
        vaddr_t spa, pa, epa;
        int c;
 
-       printf("trigger_input %p %p 0x%x\n", start, end, bsize);
+       DPRINTF("trigger_input %p %p 0x%x\n", start, end, bsize);
 
        for (p = sc->sc_dmas; p && p->addr != start; p = p->next);
        if (!p)

Reply via email to