Print this page
10686 Debug macros causes smatch issues

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

@@ -69,13 +73,13 @@
 #ifdef ENX_DEBUG
 #define ENX_DPRINTF_DEBUG       eibnx_dprintf_debug
 #define ENX_DPRINTF_ARGS        eibnx_dprintf_args
 #define ENX_DPRINTF_VERBOSE     eibnx_dprintf_verbose
 #else
-#define ENX_DPRINTF_DEBUG       0 &&
-#define ENX_DPRINTF_ARGS        0 &&
-#define ENX_DPRINTF_VERBOSE     0 &&
+#define ENX_DPRINTF_DEBUG(...)
+#define ENX_DPRINTF_ARGS(...)
+#define ENX_DPRINTF_VERBOSE(...)
 #endif
 
 /*
  *  EoIB Nexus service threads
  */