NetBSD Problem Report #8541

Received: (qmail 28374 invoked from network); 3 Oct 1999 16:08:20 -0000
Message-Id: <199910031607.SAA18675@i41am1.ira.uka.de>
Date: Sun, 3 Oct 1999 18:07:14 +0200 (MEST)
From: frueauf@netbsd.org
Reply-To: frueauf@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: sys/arch/amiga/dev/sbic.c does not compile if DEBUG is set
X-Send-Pr-Version: 3.95

>Number:         8541
>Category:       port-amiga
>Synopsis:       sys/arch/amiga/dev/sbic.c does not compile if DEBUG is set
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-amiga-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 03 09:20:01 +0000 1999
>Closed-Date:    Wed Oct 06 08:47:32 +0000 1999
>Last-Modified:  Wed Oct 06 08:48:01 +0000 1999
>Originator:     Thorsten Frueauf
>Release:        NetBSD-current from 19.09.1999
>Organization:
private

>Environment:

System: NetBSD di-frueauf 1.4K NetBSD 1.4K (CYBERDYNE) #0: Sun Sep 26 17:12:36 MEST 1999     root@di-frueauf:/usr/src/sys/arch/amiga/compile/CYBERDYNE amiga

Amiga 3000 with Cyberstorm II 060@50 mhz

>Description:

Try to compile a kernel with

options         DEBUG           # Enable misc. kernel debugging code
ahsc0           at mainbus0             # A3000 scsi
scsibus*        at ahsc0

enabled:

cc  -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Wno-main -O2 -m68060 -Wa,-m68030 -Wa,-m68851 -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -DM68060 -DM060SP -DLKM -DNKMEMCLUSTERS="0x400" -DNMBCLUSTERS="0x400" -DDIAGNOSTIC -DDEBUG -DMAXUSERS=32 -D_KERNEL -Damiga -DFPCOPROC  -c ../../../../arch/amiga/dev/sbic.c
cc1: warnings being treated as errors
../../../../arch/amiga/dev/sbic.c: In function `sbic_dump':
../../../../arch/amiga/dev/sbic.c:2934: warning: format argument is not a pointer (arg 4)
*** Error code 1

Note that sbic.c has only 2905 lines, so the line above does not exist.

>How-To-Repeat:

see above.

>Fix:

no idea, sorry.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: is 
State-Changed-When: Mon Oct 4 02:51:28 PDT 1999 
State-Changed-Why:  
This is an old problem (a remnant of the Apollo-transformed A3000 scsi support 
changes). Apparently, nobody tried to build a DEBUG kernel with sbic since that  
change occured. 
A fix will be provided by a seperate message. 

From: is@netbsd.org
To: gnats-bugs@netbsd.org
Cc:  Subject: port-amiga/8541
Date: 4 Oct 1999 09:50:41 -0000

 Try this fix:

 *** sbic.c.original	Mon Oct  4 11:14:30 1999
 --- sbic.c	Mon Oct  4 11:17:37 1999
 ***************
 *** 2860,2867 ****
   		GET_SBIC_csr(regs, csr);
   	else
   		csr = 0;
 ! 	printf("%s@%p regs %p asr %x csr %x\n", dev->sc_dev.dv_xname,
 ! 	    dev, regs, asr, csr);
   	if ((acb = dev->free_list.tqh_first)) {
   		printf("Free list:\n");
   		while (acb) {
 --- 2860,2867 ----
   		GET_SBIC_csr(regs, csr);
   	else
   		csr = 0;
 ! 	printf("%s@%p regs %p/%p asr %x csr %x\n", dev->sc_dev.dv_xname,
 ! 	    dev, regs.sbic_asr_p, regs.sbic_value_p, asr, csr);
   	if ((acb = dev->free_list.tqh_first)) {
   		printf("Free list:\n");
   		while (acb) {
 	-is
State-Changed-From-To: feedback->closed 
State-Changed-By: is 
State-Changed-When: Wed Oct 6 01:47:32 PDT 1999 
State-Changed-Why:  
Fixed and tested by myself. 
>Unformatted:
 sys/arch/amiga/dev/sbic.c does not compile if DEBUG is set

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.