Subject: port-amiga/8541: sys/arch/amiga/dev/sbic.c does not compile if DEBUG is set
To: None <gnats-bugs@gnats.netbsd.org>
From: None <frueauf@netbsd.org>
List: netbsd-bugs
Date: 10/03/1999 09:53:02
>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 (NetBSD/amiga Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct  3 09:20:01 1999
>Last-Modified:
>Originator:     Thorsten Frueauf
>Organization:
private
	
>Release:        NetBSD-current from 19.09.1999
>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.
>Audit-Trail:
>Unformatted:
sys/arch/amiga/dev/sbic.c does not compile if DEBUG is set