aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/so_txtime.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/so_txtime.c
parentselftests: net: Use size_t and ssize_t for counting file size (diff)
downloadlinux-dev-670cd6849ea36ea4df2f2941cf4717dff8755abe.tar.xz
linux-dev-670cd6849ea36ea4df2f2941cf4717dff8755abe.zip
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/so_txtime.c')
-rw-r--r--tools/testing/selftests/net/so_txtime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/net/so_txtime.c b/tools/testing/selftests/net/so_txtime.c
index 53f598f06647..34df4c8882af 100644
--- a/tools/testing/selftests/net/so_txtime.c
+++ b/tools/testing/selftests/net/so_txtime.c
@@ -105,8 +105,8 @@ static void do_recv_one(int fdr, struct timed_send *ts)
tstop = (gettime_ns() - glob_tstart) / 1000;
texpect = ts->delay_us >= 0 ? ts->delay_us : 0;
- fprintf(stderr, "payload:%c delay:%ld expected:%ld (us)\n",
- rbuf[0], tstop, texpect);
+ fprintf(stderr, "payload:%c delay:%lld expected:%lld (us)\n",
+ rbuf[0], (long long)tstop, (long long)texpect);
if (rbuf[0] != ts->data)
error(1, 0, "payload mismatch. expected %c", ts->data);