Added printf/fprintf replacement for some internal modules. (#1974)

* logging is instead redirected to `ndpi_debug_printf`

Signed-off-by: lns <matzeton@googlemail.com>
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni
2023-09-26 23:10:57 +02:00
committed by GitHub
parent 725fcf4852
commit ef3adb9830
21 changed files with 234 additions and 79 deletions
+3
View File
@@ -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)