NetBSD Problem Report #9388

Received: (qmail 15713 invoked from network); 10 Feb 2000 16:32:12 -0000
Message-Id: <200002101631.JAA26115@loop.home>
Date: Thu, 10 Feb 2000 09:31:43 -0700 (MST)
From: swp@alumni.rice.edu
Reply-To: swp@alumni.rice.edu
To: gnats-bugs@gnats.netbsd.org
Subject: hp300 kernel build error
X-Send-Pr-Version: 3.95

>Number:         9388
>Category:       port-hp300
>Synopsis:       Kernel build on hp300 fails with 2000/02/08 sources
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-hp300-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 10 08:33:00 +0000 2000
>Closed-Date:    Thu Feb 10 23:09:21 +0000 2000
>Last-Modified:  Thu Feb 10 23:09:40 +0000 2000
>Originator:     Steve Peurifoy
>Release:        NetBSD-current 2000/02/08
>Organization:
>Environment:
 System: NetBSD loop 1.4P NetBSD 1.4P (loop) #0: Sat Jan 15 18:37:10 MST 2000 root@loop:/usr/src/sys/arch/hp300/compile/loop hp300


>Description:
	There is a printf() format specifier of %ld in sdintr() in the
	file src/sys/arch/hp300/dev/sd.c which is used to print the
	retry count.  The recent changes related to ordered writes
	changed the variable being printed to an int.
>How-To-Repeat:
	Build a kernel including the sd device.
>Fix:

Index: sd.c
===================================================================
RCS file: /cvs/src/sys/arch/hp300/dev/sd.c,v
retrieving revision 1.13
diff -c -r1.13 sd.c
*** sd.c	2000/02/10 03:26:47	1.13
--- sd.c	2000/02/10 16:11:25
***************
*** 1040,1046 ****
  		cond = sderror(sc, stat);
  		if (cond) {
  			if (cond < 0 && sc->sc_errcnt++ < SDRETRY) {
! 				printf("%s: retry #%ld\n",
  				    sc->sc_dev.dv_xname,
  				    sc->sc_errcnt);
  				sdstart(sc);
--- 1040,1046 ----
  		cond = sderror(sc, stat);
  		if (cond) {
  			if (cond < 0 && sc->sc_errcnt++ < SDRETRY) {
! 				printf("%s: retry #%d\n",
  				    sc->sc_dev.dv_xname,
  				    sc->sc_errcnt);
  				sdstart(sc);

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: thorpej 
State-Changed-When: Thu Feb 10 15:09:21 PST 2000 
State-Changed-Why:  
Fixed. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.