diff options
author | lns <matzeton@googlemail.com> | 2023-09-24 22:50:22 +0200 |
---|---|---|
committer | lns <matzeton@googlemail.com> | 2023-09-24 22:50:22 +0200 |
commit | 7fde1db6a4b00696c433de8498e88e3928d6d757 (patch) | |
tree | 9010a0326b2f5c2edf975a3c974160c30a123231 /src/lib/ndpi_analyze.c | |
parent | 725fcf4852f06e2f54469c2439d13169d5d68d09 (diff) |
Added printf/fprintf replacement for some internal modules.improved/logging_callback_ndpi_printf
* logging is instead redirected to `ndpi_debug_printf`
Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/ndpi_analyze.c')
-rw-r--r-- | src/lib/ndpi_analyze.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ndpi_analyze.c b/src/lib/ndpi_analyze.c index e9aa99a31..f6d828107 100644 --- a/src/lib/ndpi_analyze.c +++ b/src/lib/ndpi_analyze.c @@ -32,6 +32,8 @@ #include "ndpi_config.h" #include "third_party/include/hll.h" +#include "ndpi_replace_printf.h" + /* ********************************************************************************* */ void ndpi_init_data_analysis(struct ndpi_analyze_struct *ret, u_int16_t _max_series_len) { @@ -726,6 +728,7 @@ int ndpi_cluster_bins(struct ndpi_bin *bins, u_int16_t num_bins, float *bin_score; u_int16_t num_cluster_elems[MAX_NUM_CLUSTERS] = { 0 }; + (void)out_buf; srand(time(NULL)); if(!bins || num_bins == 0 || !cluster_ids || num_clusters == 0) |