Print this page
10886 smatch debug macro cleanup in usr/src/uts

@@ -22,10 +22,11 @@
  * Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
  */
 /*
  * Copyright 2011 cyril.galibern@opensvc.com
  * Copyright 2017 Nexenta Systems, Inc.  All rights reserved.
+ * Copyright 2019 Joyent, Inc.
  */
 
 #ifndef _SYS_SCSI_TARGETS_SDDEF_H
 #define _SYS_SCSI_TARGETS_SDDEF_H
 

@@ -1162,14 +1163,14 @@
 #endif
 
 #else
 
 #undef  SDDEBUG
-#define SD_ERROR        { if (0) sd_log_err; }
-#define SD_TRACE        { if (0) sd_log_trace; }
-#define SD_INFO         { if (0) sd_log_info; }
-#define SD_DUMP_MEMORY  { if (0) sd_dump_memory; }
+#define SD_ERROR(...)           (void)(0)
+#define SD_TRACE(...)           (void)(0)
+#define SD_INFO(...)            (void)(0)
+#define SD_DUMP_MEMORY(...)     (void)(0)
 #endif
 
 
 /*
  * Miscellaneous macros