Commit 72d1aa58 authored by Siddharth Rana's avatar Siddharth Rana

Changes to fix nfapi logging

parent 253a0360
......@@ -38,6 +38,7 @@ void nfapi_trace(nfapi_trace_level_t, char const *caller, const char *format, ..
nfapi_trace_level_t nfapi_trace_level(void);
#define NFAPI_TRACE(LEVEL, FORMAT, ...) do { \
nfapi_trace(LEVEL, __func__, FORMAT, ##__VA_ARGS__); \
if (nfapi_trace_level() >= (LEVEL)) \
nfapi_trace(LEVEL, __func__, FORMAT, ##__VA_ARGS__); \
} while (0)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment