From 9c4a446c76d5c17a2881f2bc7e3e9489ed5851e3 Mon Sep 17 00:00:00 2001 From: Pavlos Antoniou Date: Wed, 7 Jun 2017 13:14:37 +0200 Subject: Use flag %d to print signed integers in ndpiReader. --- example/ndpiReader.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'example') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 337110d32..6d5f5d5ee 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -310,9 +310,9 @@ void extcap_config() { struct ndpi_proto_sorter *protos; /* -i */ - printf("arg {number=%u}{call=-i}{display=Capture Interface or Pcap File Path}{type=string}" + printf("arg {number=%d}{call=-i}{display=Capture Interface or Pcap File Path}{type=string}" "{tooltip=The interface name}\n", argidx++); - printf("arg {number=%u}{call=-i}{display=Pcap File to Analyze}{type=fileselect}" + printf("arg {number=%d}{call=-i}{display=Pcap File to Analyze}{type=fileselect}" "{tooltip=The pcap file to analyze (if the interface is unspecified)}\n", argidx++); setupDetection(0, NULL); @@ -328,13 +328,13 @@ void extcap_config() { qsort(protos, ndpi_mod->ndpi_num_supported_protocols, sizeof(struct ndpi_proto_sorter), cmpProto); - printf("arg {number=%u}{call=-9}{display=nDPI Protocol Filter}{type=selector}" + printf("arg {number=%d}{call=-9}{display=nDPI Protocol Filter}{type=selector}" "{tooltip=nDPI Protocol to be filtered}\n", argidx); printf("value {arg=%d}{value=%d}{display=%s}\n", argidx, -1, "All Protocols (no nDPI filtering)"); for(i=0; i<(int)ndpi_mod->ndpi_num_supported_protocols; i++) - printf("value {arg=%d}{value=%d}{display=%s (%u)}\n", argidx, protos[i].id, + printf("value {arg=%d}{value=%d}{display=%s (%d)}\n", argidx, protos[i].id, protos[i].name, protos[i].id); free(protos); -- cgit v1.2.3