From 23cd3ddc866a4388b15c0cbaf338ae85dc1d1419 Mon Sep 17 00:00:00 2001 From: Stefano Garzarella Date: Fri, 27 Mar 2020 23:03:56 +0100 Subject: [PATCH] fix (iperf_api): fix compiler warning while printing an uint64_t (#969) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix the following warning: ../../src/iperf_api.c: In function ‘iperf_on_connect’: ../../src/iperf_api.c:791:58: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] Signed-off-by: Stefano Garzarella --- src/iperf_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iperf_api.c b/src/iperf_api.c index 2c0eabf..9c33314 100644 --- a/src/iperf_api.c +++ b/src/iperf_api.c @@ -773,7 +773,7 @@ iperf_on_connect(struct iperf_test *test) } } if (test->settings->rate) - iperf_printf(test, " Target Bitrate: %llu\n", test->settings->rate); + iperf_printf(test, " Target Bitrate: %"PRIu64"\n", test->settings->rate); } }