NetBSD Problem Report #1480

From gnats  Tue Sep 19 14:21:38 1995
Received: from kludge.psc.edu (root@kludge.psc.edu [128.182.62.98]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id OAA13497 for <gnats-bugs@gnats.netbsd.org>; Tue, 19 Sep 1995 14:21:37 -0400
Message-Id: <199509191821.OAA01132@kludge.psc.edu>
Date: Tue, 19 Sep 1995 14:21:33 -0400
From: hvozda@netcom.com
Reply-To: hvozda@netcom.com
To: gnats-bugs@gnats.netbsd.org
Subject: /sys/dev/isa/wd.c will not build with WDDEBUG defined
X-Send-Pr-Version: 3.2

>Number:         1480
>Category:       kern
>Synopsis:       /sys/dev/isa/wd.c will not build with WDDEBUG defined
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 19 14:35:01 +0000 1995
>Closed-Date:    Wed Nov 06 21:26:03 +0000 1996
>Last-Modified:  Thu Nov 07 05:26:14 +0000 1996
>Originator:     Eric Hvozda
>Release:        NetBSD-current sup'd on 15Sep95
>Organization:
Klub Kev Kernel Hackers Anonymous
>Environment:
NetBSD kludge.psc.edu 1.0A NetBSD 1.0A (KLUDGE) #0: Fri Sep 15 13:52:28 EDT 1995     ksulliva@kludge.psc.edu:/usr/src/sys/arch/i386/compile/KLUDGE i386
System: NetBSD kludge.psc.edu 1.0A NetBSD 1.0A (KLUDGE) #0: Fri Sep 15 13:52:28 EDT 1995 ksulliva@kludge.psc.edu:/usr/src/sys/arch/i386/compile/KLUDGE i386
>Description:
/sys/dev/isa/wd.c will not build if WDDEBUG is defined
>How-To-Repeat:
Build a kernel with wd device defined and WDDEBUG as an options and watch
the make fail.
>Fix:
After rooting around, these look right.  Someone might want to check
the 3rd change; it was a shot in the dark :-)

*** wd.c.dist	Tue Sep 19 13:33:48 1995
--- wd.c	Tue Sep 19 13:50:43 1995
***************
*** 568,574 ****
  		wd->sc_blkno = blkno / (lp->d_secsize / DEV_BSIZE);
  	} else {
  #ifdef WDDEBUG
! 		printf(" %d)%x", wd->sc_skip, inb(wd->sc_iobase+wd_altsts));
  #endif
  	}

--- 568,574 ----
  		wd->sc_blkno = blkno / (lp->d_secsize / DEV_BSIZE);
  	} else {
  #ifdef WDDEBUG
! 		printf(" %d)%x", wd->sc_skip, inb(wdc->sc_iobase+wd_altsts));
  #endif
  	}

***************
*** 676,682 ****

  #ifdef WDDEBUG
  		printf("sector %d cylin %d head %d addr %x sts %x\n", sector,
! 		    cylin, head, bp->b_data, inb(wd->sc_iobase+wd_altsts));
  #endif
  	} else if (wd->sc_nblks > 1) {
  		/* The number of blocks in the last stretch may be smaller. */
--- 676,682 ----

  #ifdef WDDEBUG
  		printf("sector %d cylin %d head %d addr %x sts %x\n", sector,
! 		    cylin, head, bp->b_data, inb(wdc->sc_iobase+wd_altsts));
  #endif
  	} else if (wd->sc_nblks > 1) {
  		/* The number of blocks in the last stretch may be smaller. */
***************
*** 736,742 ****
  	bp = wd->sc_q.b_actf;

  #ifdef WDDEBUG
! 	printf("I%d ", ctrlr);
  #endif

  	if (wait_for_unbusy(wdc) < 0) {
--- 736,742 ----
  	bp = wd->sc_q.b_actf;

  #ifdef WDDEBUG
! 	printf("I%d ", wd->sc_dev.dv_unit);
  #endif

  	if (wait_for_unbusy(wdc) < 0) {
>Release-Note:
>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: mikel
State-Changed-When: Wed Nov  6 21:26:03 1996
State-Changed-Why:
Fixed, thanks.

>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.