summaryrefslogtreecommitdiff
path: root/netsniff-ng.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-11-10 14:17:35 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-11-10 14:17:35 +0100
commit125b8ffe5a48f1daa65e54935ede55d843141f8f (patch)
tree2c4e43e6a0146c949dd16be147f28912fd1f9124 /netsniff-ng.c
parent05787035b78755ad650c1fd69e68a5c28cf66602 (diff)
netsniff-ng: Use correct printf format specifier for uint64_t
ctx->pkts_recvd_last and ctx->pkts_drops_last are uint64_t, so use the PRIu64 format specifier to print them. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'netsniff-ng.c')
-rw-r--r--netsniff-ng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netsniff-ng.c b/netsniff-ng.c
index a7aaae6..9bc4985 100644
--- a/netsniff-ng.c
+++ b/netsniff-ng.c
@@ -911,7 +911,7 @@ static void update_pcap_next_dump(struct ctx *ctx, unsigned long snaplen,
return;
if (ctx->verbose && ctx->print_mode == PRINT_NONE)
- printf(".(+%lu/-%lu)",
+ printf(".(+%"PRIu64"/-%"PRIu64")",
ctx->pkts_recvd_last - ctx->pkts_drops_last,
ctx->pkts_drops_last);
}