Print this page
10805 Fix for 10687 can be improved

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/comstar/port/srpt/srpt_impl.h
          +++ new/usr/src/uts/common/io/comstar/port/srpt/srpt_impl.h
↓ open down ↓ 514 lines elided ↑ open up ↑
 515  515                                          cmn_err(CE_NOTE, __VA_ARGS__);\
 516  516                                  }
 517  517  #ifdef  DEBUG
 518  518  #define SRPT_DPRINTF_L3(...)    if (srpt_errlevel >= SRPT_LOG_L3) { \
 519  519                                          cmn_err(CE_NOTE, __VA_ARGS__);\
 520  520                                  }
 521  521  #define SRPT_DPRINTF_L4(...)    if (srpt_errlevel >= SRPT_LOG_L4) { \
 522  522                                          cmn_err(CE_NOTE, __VA_ARGS__);\
 523  523                                  }
 524  524  #else
 525      -#define SRPT_DPRINTF_L3(...)
 526      -#define SRPT_DPRINTF_L4(...)
      525 +#define SRPT_DPRINTF_L3(...) (void)(0)
      526 +#define SRPT_DPRINTF_L4(...) (void)(0)
 527  527  #endif
 528  528  
 529  529  #ifdef __cplusplus
 530  530  }
 531  531  #endif
 532  532  
 533  533  #endif /* _SRPT_IMPL_H_ */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX