]> git.gsnw.org Git - fping.git/commitdiff
use formatstring macro PRId64 in print_netdata for output int64_t
authorGerman Service Network <support@gsnw.de>
Sat, 14 Aug 2021 10:44:02 +0000 (12:44 +0200)
committerGerman Service Network <support@gsnw.de>
Sat, 14 Aug 2021 10:44:02 +0000 (12:44 +0200)
src/fping.c

index c6209c1147b7efd9cd30ed8ec9d56e9e79d4d75c..55ef77acc2db97ea7fb05629d3c51515e8d2ee92 100644 (file)
@@ -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");