From 125b8ffe5a48f1daa65e54935ede55d843141f8f Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 10 Nov 2015 14:17:35 +0100 Subject: [PATCH] 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 --- netsniff-ng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netsniff-ng.c b/netsniff-ng.c index a7aaae6a..9bc4985d 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); } -- 2.11.4.GIT