]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
selftests: net: Fix printf format warnings on arm
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 23 Oct 2019 04:58:07 +0000 (13:58 +0900)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 29 Jan 2020 05:04:26 +0000 (00:04 -0500)
commit7ea5e5a300273aa921d023a21862d438f40496b5
treef4c0f3fbb1d06977f343e6557b044589bbb30109
parentb7fe9f67031bfcba889c064f26e4aa47771678bb
selftests: net: Fix printf format warnings on arm

BugLink: https://bugs.launchpad.net/bugs/1860490
[ Upstream commit 670cd6849ea36ea4df2f2941cf4717dff8755abe ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
tools/testing/selftests/net/so_txtime.c
tools/testing/selftests/net/udpgso.c
tools/testing/selftests/net/udpgso_bench_tx.c