From ea0eda41f190a9a95d75d6e14602a05c6710bdd1 Mon Sep 17 00:00:00 2001 From: German Service Network Date: Sat, 14 Aug 2021 12:44:02 +0200 Subject: [PATCH] use formatstring macro PRId64 in print_netdata for output int64_t --- src/fping.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fping.c b/src/fping.c index c6209c1..55ef77a 100644 --- a/src/fping.c +++ b/src/fping.c @@ -1699,9 +1699,9 @@ void print_netdata(void) printf("BEGIN fping.%s_latency\n", h->name); if (h->num_recv_i) { avg = h->total_time_i / h->num_recv_i; - printf("SET min = %ld\n", h->min_reply_i); - printf("SET avg = %ld\n", avg); - printf("SET max = %ld\n", h->max_reply_i); + printf("SET min = %" PRId64 "\n", h->min_reply_i); + printf("SET avg = %" PRId64 "\n", avg); + printf("SET max = %" PRId64 "\n", h->max_reply_i); } printf("END\n");