Subject: kern/8718: Boot loader fails to compile with DISK_DEBUG defined.
To: None <gnats-bugs@gnats.netbsd.org>
From: Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
List: netbsd-bugs
Date: 10/31/1999 06:51:41
>Number:         8718
>Category:       kern
>Synopsis:       Boot loader fails to compile with DISK_DEBUG defined.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 31 06:50:59 1999
>Last-Modified:
>Originator:     Takahiro Kambe
>Organization:
	
>Release:        NetBSD-current 1999/10/30
>Environment:
	
System: NetBSD land.sky.yamashina.kyoto.jp 1.4M NetBSD 1.4M (LAND) #120: Sun Oct 31 13:12:32 JST 1999 taca@land.sky.yamashina.kyoto.jp:/usr/src/sys/arch/i386/compile/LAND i386


>Description:
	Boot loader fails to compile with DISK_DEBUG defined.
>How-To-Repeat:
	In sys/arch/i386/stand/lib/Makefile, uncomment CPP_FLAGS which adding
	definition of DISK_DEBUG.
>Fix:
	Apply the patch supplied bellow.

Index: biosdisk_ll.c
===================================================================
RCS file: /usr/local/libdata/cvs/netbsd/sys/arch/i386/stand/lib/biosdisk_ll.c,v
retrieving revision 1.1.1.8
retrieving revision 1.1.1.1.2.8
diff -u -r1.1.1.8 -r1.1.1.1.2.8
--- biosdisk_ll.c	1999/06/05 13:27:37	1.1.1.8
+++ biosdisk_ll.c	1999/10/26 16:11:48	1.1.1.1.2.8
@@ -186,7 +186,7 @@
 #ifdef DISK_DEBUG
 				if (!cold)
 					printf("read error C:%d H:%d S:%d-%d\n",
-					       cyl, head, sec, sec + nsec - 1);
+					       d->cyl, d->head, d->sec, d->sec + nsec - 1);
 #endif
 				if (--retries >= 0)
 					continue;

>Audit-Trail:
>Unformatted: