Print this page
10686 Debug macros causes smatch issues

*** 21,30 **** --- 21,34 ---- /* * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. */ + /* + * Copyright 2019, Joyent, Inc. + */ + #ifndef _SRPT_IMPL_H_ #define _SRPT_IMPL_H_ /* * Prototypes and data structures for the SRP Target Port Provider.
*** 516,527 **** } #define SRPT_DPRINTF_L4(...) if (srpt_errlevel >= SRPT_LOG_L4) { \ cmn_err(CE_NOTE, __VA_ARGS__);\ } #else ! #define SRPT_DPRINTF_L3 0 && ! #define SRPT_DPRINTF_L4 0 && #endif #ifdef __cplusplus } #endif --- 520,531 ---- } #define SRPT_DPRINTF_L4(...) if (srpt_errlevel >= SRPT_LOG_L4) { \ cmn_err(CE_NOTE, __VA_ARGS__);\ } #else ! #define SRPT_DPRINTF_L3(...) ! #define SRPT_DPRINTF_L4(...) #endif #ifdef __cplusplus } #endif