diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2004-01-17 13:56:57 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2004-01-17 13:56:57 +0000 |
commit | c565652eba846e8845339ef4e839de84cdc95944 (patch) | |
tree | ae8226c633263adfa3941698186f63e05b9d0655 /sys/scsi | |
parent | 00b817ba7dabadac798694d6c29475d323c12abf (diff) |
Use SC_DEBUG() to display debug messages. Makes SCSIDEBUG output better.
ok tdeval@.
Diffstat (limited to 'sys/scsi')
-rw-r--r-- | sys/scsi/scsiconf.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c index e2a48841eab..1ad1851f6d4 100644 --- a/sys/scsi/scsiconf.c +++ b/sys/scsi/scsiconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.c,v 1.77 2004/01/14 02:00:41 krw Exp $ */ +/* $OpenBSD: scsiconf.c,v 1.78 2004/01/17 13:56:56 krw Exp $ */ /* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */ /* @@ -681,10 +681,8 @@ scsi_probedev(scsi, inqbuflun0, target, lun) * Stupid SCSI device that does not handle the IDENTIFY * message. Mark this LUN as not there. */ -#ifdef SCSIDEBUG - scsibusprint(&sa, scsi->sc_dev.dv_xname); - printf(" doesn't support IDENTIFY message.\n"); -#endif /* SCSIDEBUG */ + SC_DEBUG(sc_link, SDEV_DB1, + ("IDENTIFY not supported.\n")); goto bad; } } @@ -693,10 +691,8 @@ scsi_probedev(scsi, inqbuflun0, target, lun) case SID_QUAL_RSVD: case SID_QUAL_BAD_LU: case SID_QUAL_LU_OFFLINE: -#ifdef SCSIDEBUG - scsibusprint(&sa, scsi->sc_dev.dv_xname); - printf(" Residue in PERIPHERAL QUALIFIER; invalid LUN.\n"); -#endif /* SCSIDEBUG */ + SC_DEBUG(sc_link, SDEV_DB1, + ("Bad LUN. SID_QUAL = 0x%02x\n", inqbuf.device & SID_QUAL)); goto bad; case SID_QUAL_LU_OK: |