Unify ndpi debug logging to always use a u16 protocol id (#2613)

* fixes SonarCloud complaint

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni 2024-11-11 15:17:33 +01:00 committed by GitHub
parent 35ef56cc24
commit ccbbcdf283
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 6 additions and 46 deletions

View file

@ -3,7 +3,7 @@
#include "fuzz_common_code.h"
#ifdef NDPI_ENABLE_DEBUG_MESSAGES
void ndpi_debug_printf(unsigned int proto, struct ndpi_detection_module_struct *ndpi_str, ndpi_log_level_t log_level,
void ndpi_debug_printf(uint16_t proto, struct ndpi_detection_module_struct *ndpi_str, ndpi_log_level_t log_level,
const char *file_name, const char *func_name, unsigned int line_number, const char *format, ...);
#endif