selftests: mptcp: print trailing bytes with od
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Fri, 12 Sep 2025 12:25:53 +0000 (14:25 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 16 Sep 2025 01:10:37 +0000 (18:10 -0700)
commita17c5aa3a32373f80b4714b411bd8d4ffee6fc6a
tree114ab2f2e0a1e1a01fb244d928fc33699a1c931c
parent8708c5d8b3fb3f6d5d3b9e6bfe01a505819f519a
selftests: mptcp: print trailing bytes with od

This is better than printing random bytes in the terminal.

Note that Jakub suggested 'hexdump', but Mat found out this tool is not
often installed by default. 'od' can do a similar job, and it is in the
POSIX specs and available in coreutils, so it should be on more systems.

While at it, display a few more bytes, just to fill in the two lines.
And no need to display the 3rd only line showing the next number of
bytes: 0000040.

Suggested-by: Jakub Kicinski <kuba@kernel.org>
Suggested-by: Mat Martineau <martineau@kernel.org>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Reviewed-by: Geliang Tang <geliang@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250912-net-mptcp-fix-sft-connect-v1-4-d40e77cbbf02@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_lib.sh