diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2023-11-13 13:52:42 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2023-11-13 13:52:42 +0100 |
commit | 82934b7271ad11332cdc291188e6b51e9534c301 (patch) | |
tree | 6f48d177a1a047878c54db75b9945aa0e3242eea /examples/c-captured | |
parent | 4920b2a4be62b85b6355278fe0d63637bddb624f (diff) |
Fixed clang-tidy warnings.
* fixed/improved c-captured logging
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'examples/c-captured')
-rw-r--r-- | examples/c-captured/c-captured.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/c-captured/c-captured.c b/examples/c-captured/c-captured.c index 338125b6f..9356db8f5 100644 --- a/examples/c-captured/c-captured.c +++ b/examples/c-captured/c-captured.c @@ -952,7 +952,7 @@ static enum nDPIsrvd_callback_return captured_json_callback(struct nDPIsrvd_sock if (flow_user->packets == NULL || flow_user->flow_max_packets == 0 || utarray_len(flow_user->packets) == 0) { - if (logging_mode != 0) + if (capture_mode != 0) { logger(0, "Flow %llu: No packets captured.", flow->id_as_ull); } @@ -1335,8 +1335,8 @@ int main(int argc, char ** argv) return 1; } - logger(0, "Recv buffer size: %u\n", NETWORK_BUFFER_MAX_SIZE); - logger(0, "Connecting to `%s'..\n", serv_optarg); + logger(0, "Recv buffer size: %u", NETWORK_BUFFER_MAX_SIZE); + logger(0, "Connecting to `%s'..", serv_optarg); if (nDPIsrvd_connect(sock) != CONNECT_OK) { |