summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/udpgso_bench_tx.c
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2019-10-23 13:58:07 +0900
committerShuah Khan <skhan@linuxfoundation.org>2019-11-07 14:54:08 -0700
commit670cd6849ea36ea4df2f2941cf4717dff8755abe (patch)
treeac18316f63cd4daa0d5f503116c06620e2289618 /tools/testing/selftests/net/udpgso_bench_tx.c
parente698a2378e70cac1d6f70e7f119968a0716f8566 (diff)
selftests: net: Fix printf format warnings on arm
Fix printf format warnings on arm (and other 32bit arch). - udpgso.c and udpgso_bench_tx use %lu for size_t but it should be unsigned long long on 32bit arch. - so_txtime.c uses %ld for int64_t, but it should be unsigned long long on 32bit arch. Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Cc: Willem de Bruijn <willemb@google.com> Cc: David S. Miller <davem@davemloft.net> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/net/udpgso_bench_tx.c')
-rw-r--r--tools/testing/selftests/net/udpgso_bench_tx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/udpgso_bench_tx.c b/tools/testing/selftests/net/udpgso_bench_tx.c
index ada99496634a..17512a43885e 100644
--- a/tools/testing/selftests/net/udpgso_bench_tx.c
+++ b/tools/testing/selftests/net/udpgso_bench_tx.c
@@ -405,7 +405,8 @@ static int send_udp_segment(int fd, char *data)
if (ret == -1)
error(1, errno, "sendmsg");
if (ret != iov.iov_len)
- error(1, 0, "sendmsg: %u != %lu\n", ret, iov.iov_len);
+ error(1, 0, "sendmsg: %u != %llu\n", ret,
+ (unsigned long long)iov.iov_len);
return 1;
}