Commit 6e0c30af authored by wujing's avatar wujing

Temp fix: commentout NFAPI_TRACE log to avoid segfault

parent 596893b9
...@@ -40,7 +40,7 @@ extern nfapi_trace_level_t nfapi_trace_level_g; ...@@ -40,7 +40,7 @@ extern nfapi_trace_level_t nfapi_trace_level_g;
/*! NFAPI trace macro */ /*! NFAPI trace macro */
//#define NFAPI_TRACE(level, format, ...) { if(nfapi_trace_g && ((nfapi_trace_level_t)level <= nfapi_trace_level_g)) (*nfapi_trace_g)(level, format, ##__VA_ARGS__); } //#define NFAPI_TRACE(level, format, ...) { if(nfapi_trace_g && ((nfapi_trace_level_t)level <= nfapi_trace_level_g)) (*nfapi_trace_g)(level, format, ##__VA_ARGS__); }
#define NFAPI_TRACE(level, format, ...) { if (nfapi_trace_g) (*nfapi_trace_g)(level, format, ##__VA_ARGS__); } #define NFAPI_TRACE(level, format, ...) { }//if (nfapi_trace_g) (*nfapi_trace_g)(level, format, ##__VA_ARGS__); }
/*! Function to change the trace level /*! Function to change the trace level
* \param new_level The modified trace level * \param new_level The modified trace level
......
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