Print this page
10686 Debug macros causes smatch issues
*** 20,29 ****
--- 20,33 ----
*/
/*
* 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,41 ****
#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 &&
#endif /* DEBUG */
typedef enum { /* same sequence as pcieb_debug_sym[] */
/* 0 */ DBG_ATTACH,
/* 1 */ DBG_PWR,
--- 35,45 ----
#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(...)
#endif /* DEBUG */
typedef enum { /* same sequence as pcieb_debug_sym[] */
/* 0 */ DBG_ATTACH,
/* 1 */ DBG_PWR,