diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2019-10-23 07:58:07 +0300 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2019-11-08 00:54:08 +0300 |
commit | 670cd6849ea36ea4df2f2941cf4717dff8755abe (patch) | |
tree | ac18316f63cd4daa0d5f503116c06620e2289618 /tools/testing/selftests/net/so_txtime.c | |
parent | e698a2378e70cac1d6f70e7f119968a0716f8566 (diff) | |
download | linux-670cd6849ea36ea4df2f2941cf4717dff8755abe.tar.xz |
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.c | 4 |
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); |