NetBSD Problem Report #32207

From pcah8322@artax.karlin.mff.cuni.cz  Thu Dec  1 11:41:30 2005
Return-Path: <pcah8322@artax.karlin.mff.cuni.cz>
Received: from mail.casablanca.cz (mail.casablanca.cz [82.208.31.182])
	by narn.netbsd.org (Postfix) with ESMTP id 1576863B889
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  1 Dec 2005 11:41:30 +0000 (UTC)
Message-Id: <200512011141.jB1Bf579000794@beta.martani.n2.repy.czf>
Date: Thu, 1 Dec 2005 12:41:06 +0100 (CET)
From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
Reply-To: pavel.cahyna@st.mff.cuni.cz
To: gnats-bugs@netbsd.org
Subject: bba driver does not compile with AUDIO_DEBUG
X-Send-Pr-Version: 3.95

>Number:         32207
>Category:       kern
>Synopsis:       bba driver does not compile with AUDIO_DEBUG
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kleink
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 01 11:42:00 +0000 2005
>Closed-Date:    Tue Dec 06 20:07:16 +0000 2005
>Last-Modified:  Tue Dec 06 20:07:16 +0000 2005
>Originator:     Pavel Cahyna
>Release:        NetBSD 3.0_RC3
>Organization:
>Environment:
System: NetBSD beta 3.0_RC3 NetBSD 3.0_RC3 (BETA) #5: Thu Nov 24 23:10:12 CET 2005 pavel@beta:/usr/src/sys/arch/alpha/compile/BETA alpha
Architecture: alpha
Machine: alpha
>Description:
compiling with options AUDIO_DEBUG=5 fails with:
cc -mno-fp-regs -mcpu=21164a -ffreestanding -mcpu=21164a -g -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -fno-zero-initialized-in-bss -Dalpha -I. -I../../../../arch -I../../../.. -nostdinc -DDIAGNOSTIC -DMSGBUFSIZE=1048576 -DUFS_DIRHASH -DLKM -DAUDIO_DEBUG=5 -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I../../../../dist/ipf -c ../../../../dev/tc/bba.c
../../../../dev/tc/bba.c: In function `bba_allocm':
../../../../dev/tc/bba.c:303: warning: int format, different type arg (arg 2)
../../../../dev/tc/bba.c: In function `bba_round_buffersize':
../../../../dev/tc/bba.c:376: warning: int format, different type arg (arg 2)
*** Error code 1

Stop.
make: stopped in /usr/src/sys/arch/alpha/compile/BETA

>How-To-Repeat:
try to compile an alpha kernel (pmax maybe too) with AUDIO_DEBUG.
>Fix:
Index: src/sys/dev/tc/bba.c
===================================================================
RCS file: /home/pavel/cvs/src/sys/dev/tc/bba.c,v
retrieving revision 1.24
diff -u -r1.24 bba.c
--- src/sys/dev/tc/bba.c	15 Jan 2005 15:19:53 -0000	1.24
+++ src/sys/dev/tc/bba.c	7 Oct 2005 15:28:31 -0000
@@ -300,7 +300,7 @@
 	int w;
 	int state;

-	DPRINTF(("bba_allocm: size = %d\n", size));
+	DPRINTF(("bba_allocm: size = %zd\n", size));
 	asc = addr;
 	sc = addr;
 	state = 0;
@@ -373,7 +373,7 @@
 bba_round_buffersize(void *addr, int direction, size_t size)
 {

-	DPRINTF(("bba_round_buffersize: size=%d\n", size));
+	DPRINTF(("bba_round_buffersize: size=%zd\n", size));
 	return size > BBA_DMABUF_SIZE ? BBA_DMABUF_SIZE :
 	    roundup(size, IOASIC_DMA_BLOCKSIZE);
 }

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: kern-bug-people->kleink
Responsible-Changed-By: kleink@netbsd.org
Responsible-Changed-When: Fri, 02 Dec 2005 19:29:53 +0000
Responsible-Changed-Why:
I'll submit a pullup request for netbsd-3.


State-Changed-From-To: open->analyzed
State-Changed-By: kleink@netbsd.org
State-Changed-When: Fri, 02 Dec 2005 19:29:53 +0000
State-Changed-Why:
Fixed in rev. 1.26.  One nit: The correct conversion for size_t is %zu
due to its unsigned-ness.


From: Klaus Klein <kleink@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/32207 CVS commit: src/sys/dev/tc
Date: Fri,  2 Dec 2005 19:26:14 +0000 (UTC)

 Module Name:	src
 Committed By:	kleink
 Date:		Fri Dec  2 19:26:14 UTC 2005

 Modified Files:
 	src/sys/dev/tc: bba.c

 Log Message:
 Fix AUDIO_DEBUG printf formatting of size_t; from Pavel Cahyna in
 PR kern/32207.


 To generate a diff of this commit:
 cvs rdiff -r1.25 -r1.26 src/sys/dev/tc/bba.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Jeff Rizzo <riz@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/32207 CVS commit: [netbsd-3] src/sys/dev/tc
Date: Tue,  6 Dec 2005 20:02:43 +0000 (UTC)

 Module Name:	src
 Committed By:	riz
 Date:		Tue Dec  6 20:02:43 UTC 2005

 Modified Files:
 	src/sys/dev/tc [netbsd-3]: bba.c

 Log Message:
 Pull up following revision(s) (requested by kleink in ticket #1019):
 	sys/dev/tc/bba.c: revision 1.26
 Fix AUDIO_DEBUG printf formatting of size_t; from Pavel Cahyna in
 PR kern/32207.


 To generate a diff of this commit:
 cvs rdiff -r1.24 -r1.24.8.1 src/sys/dev/tc/bba.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: analyzed->closed
State-Changed-By: kleink@netbsd.org
State-Changed-When: Tue, 06 Dec 2005 20:07:16 +0000
State-Changed-Why:
Pulled up to netbsd-3; thanks for the report.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.