diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2019-09-29 23:08:58 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2019-09-29 23:08:58 +0000 |
commit | a2ace3df863ed064c9012c07f26dbdae274f782d (patch) | |
tree | 3eb0b694302518b7dc4ef5cedb7a46474e976200 /sys/scsi | |
parent | 2e6e8d48a2dd415a2c4b9042d8d8197c826c5141 (diff) |
Restore SC_DEBUGN() as it was used outside sys/scsi. Some things are
not compiled on amd64!
Diffstat (limited to 'sys/scsi')
-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 */ |