From 03d217eae60c45288131676b736a9d7ece1baca2 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Wed, 21 Sep 2022 16:49:51 +0200 Subject: Fix CI after nBPF integration (#1746) Add one CI job testing nBPF --- src/lib/ndpi_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/ndpi_main.c') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 9df6dfa6d..9dd098653 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -3627,7 +3627,7 @@ int ndpi_handle_rule(struct ndpi_detection_module_struct *ndpi_str, char *rule, char *filter = &attr[5]; if(ndpi_str->num_nbpf_custom_proto >= MAX_NBPF_CUSTOM_PROTO) { - NDPI_LOG_ERR(ndpi_str, "nBPF: too many protocols"); + NDPI_LOG_ERR(ndpi_str, "nBPF: too many protocols\n"); return(-4); /* Too many protocols */ } @@ -3643,14 +3643,14 @@ int ndpi_handle_rule(struct ndpi_detection_module_struct *ndpi_str, char *rule, if((ndpi_str->nbpf_custom_proto[ndpi_str->num_nbpf_custom_proto].tree = nbpf_parse(filter, NULL)) == NULL) { - NDPI_LOG_ERR(ndpi_str, "nBPF invalid filter: %s", filter) + NDPI_LOG_ERR(ndpi_str, "nBPF invalid filter: %s\n", filter) return(-5); /* Invalid filter */ } else ndpi_str->nbpf_custom_proto[ndpi_str->num_nbpf_custom_proto].l7_protocol = subprotocol_id; ndpi_str->num_nbpf_custom_proto++; #else - NDPI_LOG_ERR(ndpi_str, "nDPI compiled without nBPF support: skipping rule"); + NDPI_LOG_INFO(ndpi_str, "nDPI compiled without nBPF support: skipping rule\n"); return(-6); #endif } -- cgit v1.2.3