summaryrefslogtreecommitdiff
path: root/sys/scsi/scsi_base.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2019-09-29 17:57:37 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2019-09-29 17:57:37 +0000
commitea32f8792601d27c6999d7a816b2fad68f1247b4 (patch)
treec0f8d0ad9d39269df25fda259a5935ed93eb54d7 /sys/scsi/scsi_base.c
parent877d651832f891e1a8224202faf331a8a97990cf (diff)
Introduce SC_DEBUG_SENSE() and simplify code by eliminating a bunch
of three line SCSIDEBUG chunks.
Diffstat (limited to 'sys/scsi/scsi_base.c')
-rw-r--r--sys/scsi/scsi_base.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index bd60e06710a..175ed9c2256 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_base.c,v 1.236 2019/09/29 16:10:30 krw Exp $ */
+/* $OpenBSD: scsi_base.c,v 1.237 2019/09/29 17:57:36 krw Exp $ */
/* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */
/*
@@ -1401,9 +1401,7 @@ scsi_xs_error(struct scsi_xfer *xs)
case XS_SENSE:
case XS_SHORTSENSE:
-#ifdef SCSIDEBUG
- scsi_show_sense(xs);
-#endif /* SCSIDEBUG */
+ SC_DEBUG_SENSE(xs);
error = xs->sc_link->interpret_sense(xs);
SC_DEBUG(xs->sc_link, SDEV_DB3,
("scsi_interpret_sense returned %#x\n", error));