diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2024-11-06 17:40:45 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2024-11-07 17:40:45 +0100 |
commit | 051e8df7a77bb5b0d62940190e31e906b7c39bfa (patch) | |
tree | e7c92dfc7b58636ad0f2c658d1ae6424804da55c /fuzz | |
parent | 3b1286ab03b0c9223ac208a01868d8c1f6c0ae00 (diff) |
Unify ndpi debug logging to always use a u16 protocol idimprove/proto-debug-printf
* fixes SonarCloud complaint
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'fuzz')
-rw-r--r-- | fuzz/fuzz_ds_domain_classify.cpp | 2 | ||||
-rw-r--r-- | fuzz/fuzz_filecfg_malicious_sha1.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fuzz/fuzz_ds_domain_classify.cpp b/fuzz/fuzz_ds_domain_classify.cpp index ccb106a6f..0938faec7 100644 --- a/fuzz/fuzz_ds_domain_classify.cpp +++ b/fuzz/fuzz_ds_domain_classify.cpp @@ -12,7 +12,7 @@ static struct ndpi_detection_module_struct *ndpi_struct = NULL; extern "C" { #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 diff --git a/fuzz/fuzz_filecfg_malicious_sha1.c b/fuzz/fuzz_filecfg_malicious_sha1.c index 5940dd7af..f460a987f 100644 --- a/fuzz/fuzz_filecfg_malicious_sha1.c +++ b/fuzz/fuzz_filecfg_malicious_sha1.c @@ -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 |