summaryrefslogtreecommitdiff
path: root/sys/scsi
diff options
context:
space:
mode:
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/scsi_debug.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/scsi/scsi_debug.h b/sys/scsi/scsi_debug.h
index 2035ea84ce1..0078c0c8251 100644
--- a/sys/scsi/scsi_debug.h
+++ b/sys/scsi/scsi_debug.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_debug.h,v 1.19 2019/09/29 17:57:36 krw Exp $ */
+/* $OpenBSD: scsi_debug.h,v 1.20 2019/09/29 23:08:57 krw Exp $ */
/* $NetBSD: scsi_debug.h,v 1.7 1996/10/12 23:23:16 christos Exp $ */
/*
@@ -56,11 +56,17 @@ void scsi_show_flags(u_int16_t, const char **);
printf Printstuff; \
} \
} while (0)
+#define SC_DEBUGN(link,Level,Printstuff) do { \
+ if ((link)->flags & (Level)) { \
+ printf Printstuff; \
+ } \
+} while (0)
#define SC_DEBUG_SENSE(xs) do { \
scsi_show_sense(xs); \
} while (0)
#else
#define SC_DEBUG(link,level,Printstuff)
+#define SCSI_DEBUGN()
#define SC_DEBUG_SENSE(xs)
#endif /* SCSIDEBUG */