From 2c2bb11c9b704c5b13e9b45d93a16fbad6304cb0 Mon Sep 17 00:00:00 2001 From: Luca Date: Wed, 11 Dec 2019 11:27:00 +0100 Subject: Fixed output format --- example/ndpiReader.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'example') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 4ffce62b8..7f0ebda23 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1105,7 +1105,7 @@ static void printFlow(u_int16_t id, struct ndpi_flow_info *flow, u_int16_t threa return; } - if(csv_fp) { + if(csv_fp || (verbose > 1)) { #if 1 fprintf(out, "\t%u", id); #else @@ -1133,8 +1133,6 @@ static void printFlow(u_int16_t id, struct ndpi_flow_info *flow, u_int16_t threa fflush(out); fprintf(out, "[score: %.4f]", flow->entropy.score); } - - fprintf(out, "[proto: "); if(flow->tunnel_type != ndpi_no_tunnel) -- cgit v1.2.3