NetBSD Problem Report #2108

From gnats  Thu Feb 22 03:28:00 1996
Received: from azathoth.boston.ma.us by pain.lcs.mit.edu (8.6.12/8.6.12) with ESMTP id DAA20894 for <gnats-bugs@gnats.netbsd.org>; Thu, 22 Feb 1996 03:15:13 -0500
Message-Id: <199602220812.DAA00207@azathoth.boston.ma.us>
Date: Thu, 22 Feb 1996 03:12:31 -0500 (EST)
From: Mike Long <mike.long@analog.com>
Reply-To: Mike Long <mike.long@analog.com>
To: gnats-bugs@gnats.netbsd.org
Subject: some ISA drivers (sea, ie, mcd) spew too much
X-Send-Pr-Version: 3.95

>Number:         2108
>Category:       port-i386
>Synopsis:       some ISA drivers (sea, ie, mcd) spew too much
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 22 03:35:02 +0000 1996
>Closed-Date:    Mon Nov 04 23:21:41 +0000 1996
>Last-Modified:  Wed Sep 05 00:54:11 +0000 2001
>Originator:     Mike Long
>Release:        960221
>Organization:
	Return Postage Guaranteed
>Environment:
System: NetBSD azathoth 1.1A NetBSD 1.1A (AZATHOTH) #15: Wed Feb 21 03:21:33 EST 1996 root@azathoth:/usr/src/sys/arch/i386/compile/AZATHOTH i386

>Description:
	Failed probes should not print anything, unless specifically
asked to do so (e.g., DEBUG kernel option).

>How-To-Repeat:
	Boot an INSTOTHER kernel on a PC that lacks any Seagate SCSI
adapters, AT&T Starlan cards, or Mitsumi CDROMs.  Potentially be
confused by messages that have no relevance to your hardware.

>Fix:
	seagate.c and if_ie.c use DIAGNOSTIC instead of a (possibly
device-specific) DEBUG option.  mcd.c has no excuse.  I used IEDEBUG
and MCDDEBUG in if_ie.c and mcd.c because they already existed.  I
used DEBUG in seagate.c because no seagate-specific option existed,
and DEBUG is already used elsewhere in the driver.

*** /sys/dev/isa/seagate.c~     Sun Dec 24 07:26:23 1995
--- /sys/dev/isa/seagate.c      Thu Feb 22 01:39:23 1996
***************
*** 379,385 ****
                break;
        default:
! #ifdef DIAGNOSTIC
!               printf("%s: board type unknown at address 0x%lx\n",
!                   sea->sc_dev.dv_xname, sea->maddr);
  #endif
                return 0;
--- 379,385 ----
                break;
        default:
! #ifdef DEBUG
!               printf("%s: board type unknown at address %#x\n",
!                   sea->sc_dev.dv_xname, ia->ia_maddr);
  #endif
                return 0;

*** /sys/dev/isa/if_ie.c~       Sun Dec 24 07:26:20 1995
--- /sys/dev/isa/if_ie.c        Thu Feb 22 01:35:58 1996
***************
*** 402,406 ****
        default:
                /* Anything else is not recognized or cannot be used. */
! #ifdef DIAGNOSTIC
                printf("%s: unknown AT&T board type code %d\n",
                    sc->sc_dev.dv_xname, SL_BOARD(c));
--- 402,406 ----
        default:
                /* Anything else is not recognized or cannot be used. */
! #ifdef IEDEBUG
                printf("%s: unknown AT&T board type code %d\n",
                    sc->sc_dev.dv_xname, SL_BOARD(c));

*** /sys/dev/isa/mcd.c~ Thu Feb  1 07:25:50 1996
--- /sys/dev/isa/mcd.c  Thu Feb 22 01:34:07 1996
***************
*** 798,804 ****
--- 798,806 ----
                break;
        default:
+ #ifdef MCDDEBUG
                printf("%s: unrecognized drive version %c%02x; will try to use it anyway\n",
                    sc->sc_dev.dv_xname,
                    mbx.res.data.continfo.code, mbx.res.data.continfo.version);
+ #endif
                sc->type = 0;
                break;

>Release-Note:
>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: mikel
State-Changed-When: Mon Nov  4 23:21:41 1996
State-Changed-Why:
Fixed.

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