Patch fixes a broken compilation when using SCSIDEBUG options(4).
Resolved with krw@ assistance.
Ok?
diff --git sys/scsi/scsi_debug.h sys/scsi/scsi_debug.h
index bf1519fa36d..56c2d530653 100644
--- sys/scsi/scsi_debug.h
+++ sys/scsi/scsi_debug.h
@@ -40,15 +40,17 @@ extern int scsidebug_level;
* This is the usual debug macro for use with the above bits
*/
#ifdef SCSIDEBUG
-#define SC_DEBUG(link,Level,Printstuff) \
+#define SC_DEBUG(link,Level,Printstuff) do {\
if ((link)->flags & (Level)) { \
sc_print_addr(link); \
printf Printstuff; \
- }
-#define SC_DEBUGN(link,Level,Printstuff) \
+ } \
+} while (0)
+#define SC_DEBUGN(link,Level,Printstuff) do {\
if ((link)->flags & (Level)) { \
printf Printstuff; \
- }
+ } \
+} while (0)
#else
#define SC_DEBUG(A,B,C)
#define SC_DEBUGN(A,B,C)
--
2.14.3