iptraf-ng/backport-use-correct-format-specifier-when-printing-packet-count.patch

30 lines
910 B
Diff
Raw Normal View History

From 42b8126f0ddfabf89aa8ec2345f726915d8cf97e Mon Sep 17 00:00:00 2001
From: Vitezslav Samel <vitezslav@samel.cz>
Date: Thu, 5 May 2022 20:44:44 +0200
Subject: [PATCH] printdetails(): use correct format specifier when printing
packet count
Fixes warning from gcc-11.2.
Conflict: NA
Reference:https://github.com/iptraf-ng/iptraf-ng/commit/42b8126f0ddfabf89aa8ec2345f726915d8cf97e
Signed-off-by: Vitezslav Samel <vitezslav@samel.cz>
---
src/detstats.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/detstats.c b/src/detstats.c
index 7c5ff3f..e6c515b 100644
--- a/src/detstats.c
+++ b/src/detstats.c
@@ -406,7 +406,7 @@ static void printdetails(struct ifcounts *ifcounts, WINDOW * win)
/* Bad packet count */
- mvwprintw(win, 19, 65, "%8lu", ifcounts->bad.pc_packets);
+ mvwprintw(win, 19, 65, "%8llu", ifcounts->bad.pc_packets);
}
static void detstats_process_key(int ch)