From: Matthieu Baerts Date: Thu, 9 Mar 2023 14:50:01 +0000 (+0100) Subject: selftests: mptcp: userspace pm: fix printed values X-Git-Tag: v6.6.17~5289^2~44^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=840742b7ed0e123e47af9c5c3902746f3d6b64a2;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Matthieu Baerts Signed-off-by: Jakub Kicinski --- 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 }