summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2020-07-28 22:26:32 +0000
committerkrw <krw@openbsd.org>2020-07-28 22:26:32 +0000
commit2cd58bd5771bb3f3383ced91b8fb2a5cb29b5020 (patch)
treed5d49e232a3f531dd235e97f92e8d4993d5efd24 /sys
parentSC_DEBUG() and friends are for debugging the SCSI code, not for scattered random (diff)
downloadwireguard-openbsd-2cd58bd5771bb3f3383ced91b8fb2a5cb29b5020.tar.xz
wireguard-openbsd-2cd58bd5771bb3f3383ced91b8fb2a5cb29b5020.zip
SC_DEBUG() and friends are for debugging the SCSI code, not for scattered random
uses in drivers. Use a CAC_DEBUG sections like the other debug output does.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/cac.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ic/cac.c b/sys/dev/ic/cac.c
index 06f97468eae..dae04840f41 100644
--- a/sys/dev/ic/cac.c
+++ b/sys/dev/ic/cac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cac.c,v 1.66 2020/07/24 12:43:31 krw Exp $ */
+/* $OpenBSD: cac.c,v 1.67 2020/07/28 22:26:32 krw Exp $ */
/* $NetBSD: cac.c,v 1.15 2000/11/08 19:20:35 ad Exp $ */
/*
@@ -722,8 +722,9 @@ cac_scsi_cmd(xs)
return;
default:
- SC_DEBUG(link, SDEV_DB1, ("unsupported scsi command %#x "
- "tgt %d ", xs->cmd->opcode, target));
+#ifdef CAC_DEBUG
+ printf("unsupported scsi command %#x tgt %d ", xs->cmd->opcode, target);
+#endif
xs->error = XS_DRIVER_STUFFUP;
}