summaryrefslogtreecommitdiffstats
path: root/sys/scsi/scsi_base.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2019-09-29 17:57:36 +0000
committerkrw <krw@openbsd.org>2019-09-29 17:57:36 +0000
commitf6e3733c141c27468c14b63a227fe08297b4737f (patch)
tree9479e4e9a42cc2c525cb0363c1a0ff2d2d86ede6 /sys/scsi/scsi_base.c
parentUpdate compiler-rt to 8.0.1. This is mostly a cosmetic update for us. (diff)
downloadwireguard-openbsd-f6e3733c141c27468c14b63a227fe08297b4737f.tar.xz
wireguard-openbsd-f6e3733c141c27468c14b63a227fe08297b4737f.zip
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));