diff options
-rw-r--r-- | lib/neardal_traces_prv.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/neardal_traces_prv.h b/lib/neardal_traces_prv.h index 9e9088e..5b463b1 100644 --- a/lib/neardal_traces_prv.h +++ b/lib/neardal_traces_prv.h @@ -34,14 +34,14 @@ #define NEARDAL_TRACEIN() neardal_trace(__func__, stdout, \ "Processing...\n") #else - #define NEARDAL_TRACE(format, arg...) (LOG_ON() ? (LOG(LOG_DEBUG, "NEARDAL", "%s:%s(%d)>" format, __MODULE__, __func__, __LINE__, ##arg)) : (0)) - #define NEARDAL_TRACEF(format, arg...) (LOG_ON() ? (LOG(LOG_DEBUG, "NEARDAL", "%s:%s(%d)>" format, __MODULE__, __func__, __LINE__, ##arg)) : (0)) - #define NEARDAL_TRACEIN(format, arg...) (LOG_ON() ? (LOG(LOG_DEBUG, "NEARDAL", "%s:%s(%d)>" format, __MODULE__, __func__, __LINE__, ##arg)) : (0)) + #define NEARDAL_TRACE(format, arg...) (LOG(LOG_DEBUG, "NEARDAL", "%s:%s(%d)>" format, __MODULE__, __func__, __LINE__, ##arg)) + #define NEARDAL_TRACEF(format, arg...) (LOG(LOG_DEBUG, "NEARDAL", "%s:%s(%d)>" format, __MODULE__, __func__, __LINE__, ##arg)) + #define NEARDAL_TRACEIN(format, arg...) (LOG(LOG_DEBUG, "NEARDAL", "%s:%s(%d)>" format, __MODULE__, __func__, __LINE__, ##arg)) #define NEARDAL_TRACEDUMP(...) #endif /* NEARDAL_DEBUG */ /* always defined */ -#define NEARDAL_TRACE_LOG(format, arg...) (LOG_ON() ? (LOG(LOG_DEBUG, "NEARDAL", "%s:%s(%d)>" format, __MODULE__, __func__, __LINE__, ##arg)) : (0)) -#define NEARDAL_TRACE_ERR(format, arg...) (LOG_ON() ? (LOG(LOG_DEBUG, "NEARDAL", "%s:%s(%d)>" format, __MODULE__, __func__, __LINE__, ##arg)) : (0)) +#define NEARDAL_TRACE_LOG(format, arg...) (LOG(LOG_DEBUG, "NEARDAL", "%s:%s(%d)>" format, __MODULE__, __func__, __LINE__, ##arg)) +#define NEARDAL_TRACE_ERR(format, arg...) (LOG(LOG_DEBUG, "NEARDAL", "%s:%s(%d)>" format, __MODULE__, __func__, __LINE__, ##arg)) void neardal_trace(const char *func, FILE *stream, char *format, ...) __attribute__((format(printf, 3, 4))); |