Added checks for missing protocol initialization
Fixed missing LOG_ERR initialization Fixed logging warnings
This commit is contained in:
@@ -231,11 +231,11 @@
|
||||
# define NDPI_LOG_DBG(...) {}
|
||||
# define NDPI_LOG_DBG2(...) {}
|
||||
# else
|
||||
# define NDPI_LOG(proto, mod, log_level, args...) {}
|
||||
# define NDPI_LOG_ERR(mod, args...) {}
|
||||
# define NDPI_LOG_INFO(mod, args...) {}
|
||||
# define NDPI_LOG_DBG(mod, args...) {}
|
||||
# define NDPI_LOG_DBG2(mod, args...) {}
|
||||
# define NDPI_LOG(proto, mod, log_level, args...) { /* printf(args); */ }
|
||||
# define NDPI_LOG_ERR(mod, args...) { printf(args); }
|
||||
# define NDPI_LOG_INFO(mod, args...) { /* printf(args); */ }
|
||||
# define NDPI_LOG_DBG(mod, args...) { /* printf(args); */ }
|
||||
# define NDPI_LOG_DBG2(mod, args...) { /* printf(args); */ }
|
||||
# endif
|
||||
#endif /* NDPI_ENABLE_DEBUG_MESSAGES */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user