diff options
author | Stefano Garzarella <sgarzare@redhat.com> | 2020-03-27 23:03:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-27 15:03:56 -0700 |
commit | 23cd3ddc866a4388b15c0cbaf338ae85dc1d1419 (patch) | |
tree | 1ffcf80fb30f2d5ed471786649b7ba1de5f7187a /src | |
parent | 120b7efee9eb2ad78ab0fa13a641e5cf3eb450a9 (diff) | |
download | iperf3-23cd3ddc866a4388b15c0cbaf338ae85dc1d1419.tar.gz |
fix (iperf_api): fix compiler warning while printing an uint64_t (#969)
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 <sgarzare@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/iperf_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |