Print this page
10686 Debug macros causes smatch issues

@@ -20,10 +20,14 @@
  */
 /*
  * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
  */
 
+/*
+ * Copyright 2019, Joyent, Inc.
+ */
+
 #ifndef _RDSV3_DEBUG_H
 #define _RDSV3_DEBUG_H
 
 #ifdef __cplusplus
 extern "C" {

@@ -94,14 +98,14 @@
                 char            *fmt, ...);
 void rdsv3_dprintf3(
                 char            *name,
                 char            *fmt, ...);
 #else
-#define RDSV3_DPRINTF_INTR      0 &&
-#define RDSV3_DPRINTF5          0 &&
-#define RDSV3_DPRINTF4          0 &&
-#define RDSV3_DPRINTF3          0 &&
+#define RDSV3_DPRINTF_INTR(...)
+#define RDSV3_DPRINTF5(...)
+#define RDSV3_DPRINTF4(...)
+#define RDSV3_DPRINTF3(...)
 #endif
 
 #define RDSV3_DPRINTF2          rdsv3_dprintf2
 #define RDSV3_DPRINTF1          rdsv3_dprintf1
 #define RDSV3_DPRINTF0          rdsv3_dprintf0