aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Campus <fci1908@gmail.com>2017-06-07 15:03:14 +0200
committerGitHub <noreply@github.com>2017-06-07 15:03:14 +0200
commitc2f51cf7abefbcc35713c8e919ec305e02964869 (patch)
tree6b34ccd858046eb26fe88084c6213dc829b20e57
parente49c9f36e80b939a9026c9a5aa6fdb96166bacac (diff)
parent9c4a446c76d5c17a2881f2bc7e3e9489ed5851e3 (diff)
Merge pull request #395 from pavlosantoniou/dev
Use flag %d to print signed integers in ndpiReader.
-rw-r--r--example/ndpiReader.c8
1 files changed, 4 insertions, 4 deletions
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 <interface> */
- 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);