Print this page
10686 Debug macros causes smatch issues

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

@@ -31,11 +35,11 @@
 
 #if defined(DEBUG)
 #define PCIEB_DEBUG pcieb_dbg
 extern void pcieb_dbg(uint_t bit, dev_info_t *dip, char *fmt, ...);
 #else /* DEBUG */
-#define PCIEB_DEBUG 0 &&
+#define PCIEB_DEBUG(...)
 #endif /* DEBUG */
 
 typedef enum {  /* same sequence as pcieb_debug_sym[] */
         /*  0 */ DBG_ATTACH,
         /*  1 */ DBG_PWR,