Subject: kern/13101: AUDIO_DEBUG prints with audiodebug=0
To: None <gnats-bugs@gnats.netbsd.org>
From: John Hawkinson <jhawk@mit.edu>
List: netbsd-bugs
Date: 06/03/2001 19:26:29
>Number:         13101
>Category:       kern
>Synopsis:       AUDIO_DEBUG prints with audiodebug=0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 03 16:25:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     John Hawkinson
>Release:        -current of 21 May 2001
>Organization:
MIT
>Environment:
	
System: NetBSD zorkmid.mit.edu 1.5U NetBSD 1.5U (ZORKMID-$Revision: 1.10 $) #103: Mon May 21 21:10:47 EDT 2001 jhawk@zorkmid.mit.edu:/usr/local/netbsd-current/src/sys/arch/i386/compile/ZORKMID i386


>Description:
	After various audio operations, my kernel with AUDIO_DEBUG
turned on (but audiodebug=0) prints:

audio_sleep: woke up st=-1


>How-To-Repeat:
	Run audiorecord.

	Does this mean something? Is it supposed to happen? Is it a bug?

	I should think the printf in question should be a DPRINTF(), in
	sys/dev/audio.c:
#ifdef AUDIO_DEBUG
        if (st != 0 && st != EINTR)
            printf("audio_sleep: woke up st=%d\n", st);
#endif

>Fix:
	Make it a DPRINTF()? Or is there a real bug here?
>Release-Note:
>Audit-Trail:
>Unformatted: