selftests/tcp_ao: Fix printing format for uint64_t
authorMohammad Nassiri <mnassiri@ciena.com>
Fri, 23 Aug 2024 22:04:56 +0000 (23:04 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 27 Aug 2024 21:11:27 +0000 (14:11 -0700)
commit1c69e1f433990a81b5a5d415d8892ebcaacb985b
tree8568f7dc9230efd052d0cd3ef67759d33421752f
parenta9e1693406f96f3739611dd08518c9eda3acecfd
selftests/tcp_ao: Fix printing format for uint64_t

It's not safe to use '%zu' specifier for printing uint64_t on 32-bit
systems. For uint64_t, we should use the 'PRIu64' macro from
the inttypes.h library. This ensures that the uint64_t is printed
correctly from the selftests regardless of the system architecture.

Signed-off-by: Mohammad Nassiri <mnassiri@ciena.com>
[Added missing spaces in fail/ok messages and uint64_t cast in
 setsockopt-closed, as otherwise it was giving warnings on 64bit.
 And carried it to netdev ml]
Signed-off-by: Dmitry Safonov <0x7f454c46@gmail.com>
Link: https://patch.msgid.link/20240823-tcp-ao-selftests-upd-6-12-v4-6-05623636fe8c@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/tcp_ao/connect-deny.c
tools/testing/selftests/net/tcp_ao/connect.c
tools/testing/selftests/net/tcp_ao/restore.c
tools/testing/selftests/net/tcp_ao/self-connect.c
tools/testing/selftests/net/tcp_ao/seq-ext.c
tools/testing/selftests/net/tcp_ao/setsockopt-closed.c
tools/testing/selftests/net/tcp_ao/unsigned-md5.c