Print this page
10686 Debug macros causes smatch issues
@@ -21,15 +21,17 @@
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/*
+ * Copyright 2019, Joyent, Inc.
+ */
+
#ifndef _RDSIB_DEBUG_H
#define _RDSIB_DEBUG_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#ifdef __cplusplus
extern "C" {
#endif
#define LABEL "RDS"
@@ -97,14 +99,14 @@
char *fmt, ...);
void rds_dprintf3(
char *name,
char *fmt, ...);
#else
-#define RDS_DPRINTF_INTR 0 &&
-#define RDS_DPRINTF5 0 &&
-#define RDS_DPRINTF4 0 &&
-#define RDS_DPRINTF3 0 &&
+#define RDS_DPRINTF_INTR(...)
+#define RDS_DPRINTF5(...)
+#define RDS_DPRINTF4(...)
+#define RDS_DPRINTF3(...)
#endif
#define RDS_DPRINTF2 rds_dprintf2
#define RDS_DPRINTF1 rds_dprintf1
#define RDS_DPRINTF0 rds_dprintf0