Merge pull request #932 from IvanNardi/log

Log
This commit is contained in:
Luca Deri
2020-07-07 14:43:32 +02:00
committed by GitHub
15 changed files with 77 additions and 43 deletions
+10
View File
@@ -336,4 +336,14 @@ float ndpi_flow_get_byte_count_entropy(const uint32_t byte_count[256], unsigned
extern int nDPI_LogLevel;
#ifdef NDPI_ENABLE_DEBUG_MESSAGES
#define LOG(log_level, args...) \
{ \
if(log_level <= nDPI_LogLevel) \
printf(args); \
}
#else
#define LOG(...) {}
#endif
#endif