diff options
author | 2019-09-29 23:08:57 +0000 | |
---|---|---|
committer | 2019-09-29 23:08:57 +0000 | |
commit | fbc75f413cb9b4345e37deaacfcec826b850c632 (patch) | |
tree | c1c215f6608154e3e63f4cbd614006175b2e40f9 | |
parent | sync (diff) | |
download | wireguard-openbsd-fbc75f413cb9b4345e37deaacfcec826b850c632.tar.xz wireguard-openbsd-fbc75f413cb9b4345e37deaacfcec826b850c632.zip |
Restore SC_DEBUGN() as it was used outside sys/scsi. Some things are
not compiled on amd64!
-rw-r--r-- | sys/scsi/scsi_debug.h | 8 |
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 */ |