summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorHangbin Liu <liuhangbin@gmail.com>2025-07-09 09:12:44 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-07-17 18:43:59 +0200
commita16f5543b01aa2b420beafdb28b78f3757a92d1e (patch)
tree30a030db7a919c4dadf4c147200192b62da9ebe9 /tools/perf/scripts/python/stackcollapse.py
parent662a4e32679a22475ea34b572ed0b8fab8581f2d (diff)
downloadkernel-a16f5543b01aa2b420beafdb28b78f3757a92d1e.tar.gz
selftests: net: lib: fix shift count out of range
[ Upstream commit 47c84997c686b4d43b225521b732492552b84758 ] I got the following warning when writing other tests: + handle_test_result_pass 'bond 802.3ad' '(lacp_active off)' + local 'test_name=bond 802.3ad' + shift + local 'opt_str=(lacp_active off)' + shift + log_test_result 'bond 802.3ad' '(lacp_active off)' ' OK ' + local 'test_name=bond 802.3ad' + shift + local 'opt_str=(lacp_active off)' + shift + local 'result= OK ' + shift + local retmsg= + shift /net/tools/testing/selftests/net/forwarding/../lib.sh: line 315: shift: shift count out of range This happens because an extra shift is executed even after all arguments have been consumed. Remove the last shift in log_test_result() to avoid this warning. Fixes: a923af1ceee7 ("selftests: forwarding: Convert log_test() to recognize RET values") Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Link: https://patch.msgid.link/20250709091244.88395-1-liuhangbin@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions