Print this page
10686 Debug macros causes smatch issues
*** 21,30 ****
--- 21,34 ----
/*
* 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,81 ****
#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 &&
#endif
/*
* EoIB Nexus service threads
*/
--- 73,85 ----
#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(...)
! #define ENX_DPRINTF_ARGS(...)
! #define ENX_DPRINTF_VERBOSE(...)
#endif
/*
* EoIB Nexus service threads
*/