diff options
author | Matthieu Baerts <matthieu.baerts@tessares.net> | 2023-03-09 15:50:01 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-03-11 06:42:56 +0100 |
commit | 840742b7ed0e123e47af9c5c3902746f3d6b64a2 (patch) | |
tree | d7daff83344eac07684f608d083e946cc640ad02 /tools | |
parent | mptcp: fix UaF in listener shutdown (diff) | |
download | linux-840742b7ed0e123e47af9c5c3902746f3d6b64a2.tar.xz linux-840742b7ed0e123e47af9c5c3902746f3d6b64a2.zip |
selftests: mptcp: userspace pm: fix printed values
In case of errors, the printed message had the expected and the seen
value inverted.
This patch simply correct the order: first the expected value, then the
one that has been seen.
Fixes: 10d4273411be ("selftests: mptcp: userspace: print error details if any")
Cc: stable@vger.kernel.org
Acked-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testing/selftests/net/mptcp/userspace_pm.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/mptcp/userspace_pm.sh b/tools/testing/selftests/net/mptcp/userspace_pm.sh index 66c5be25c13d..48e52f995a98 100755 --- a/tools/testing/selftests/net/mptcp/userspace_pm.sh +++ b/tools/testing/selftests/net/mptcp/userspace_pm.sh @@ -240,7 +240,7 @@ check_expected_one() fi stdbuf -o0 -e0 printf "\tExpected value for '%s': '%s', got '%s'.\n" \ - "${var}" "${!var}" "${!exp}" + "${var}" "${!exp}" "${!var}" return 1 } |