Subject: kern/9379: cannot compile sys/dev/cardbus/cardbus_map.c
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kawamoto@tenjin.org>
List: netbsd-bugs
Date: 02/08/2000 22:42:38
>Number:         9379
>Category:       kern
>Synopsis:       cannot compile sys/dev/cardbus/cardbus_map.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb  8 22:42:00 2000
>Last-Modified:
>Originator:     Kawamoto Yosihisa
>Organization:
	Osaka University
>Release:        Feb 8, 2000
>Environment:

System: NetBSD rerun.tenjin.org 1.4R NetBSD 1.4R (RERUN) #271: Tue Feb 8 16:01:07 JST 2000 kawamoto@rerun.tenjin.org:/usr/src/sys/arch/i386/compile/RERUN i386


>Description:
	On compiling a kernel with a CardBus bus support, cardbus_map.c has
	some errors and my kernel compiling was stopped.
>How-To-Repeat:
	Compile a kernel with a CardBus bus support and options 'DEBUG'.
>Fix:
	Apply a following patch.

--- dev/cardbus/cardbus_map.c	2000/02/09 06:36:58	1.1
+++ dev/cardbus/cardbus_map.c	2000/02/09 06:37:24	1.2
@@ -360,11 +360,11 @@
 
 	if (sc->sc_iot == tag) {
 		/* bus space is io space */
-		DPRINTF(("%s: unmap i/o space\n", sc->sc_dev.xname));
+		DPRINTF(("%s: unmap i/o space\n", sc->sc_dev.dv_xname));
 		rb = sc->sc_rbus_iot;
 	} if (sc->sc_memt == tag) {
 		/* bus space is memory space */
-		DPRINTF(("%s: unmap mem space\n", sc->sc_dev.xname));
+		DPRINTF(("%s: unmap mem space\n", sc->sc_dev.dv_xname));
 		rb = sc->sc_rbus_memt;
 	} else {
 		return 1;
>Audit-Trail:
>Unformatted: