diff options
author | Guillaume Tucker | 2023-02-09 09:55:36 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-03-10 09:33:27 +0100 |
commit | 718eaef01e5a71226b7ed8bad9da1e086d7cb20c (patch) | |
tree | 43f7eb8d2f4d7d9a6d8d3c4e395ce4162b2c6f8a /tools/thermal | |
parent | 947de2882d42b11f85539d7c69f148f84a2aea28 (diff) |
selftests: use printf instead of echo -ne
[ Upstream commit 9e34fad00fc889abbb99d751a4c22cf2bded10df ]
Rather than trying to guess which implementation of "echo" to run with
support for "-ne" options, use "printf" instead of "echo -ne". It
handles escape characters as a standard feature and it is widespread
among modern shells.
Reported-by: "kernelci.org bot" <bot@kernelci.org>
Suggested-by: David Laight <David.Laight@ACULAB.COM>
Fixes: 3297a4df805d ("kselftests: Enable the echo command to print newlines in Makefile")
Fixes: 79c16b1120fe ("selftests: find echo binary to use -ne options")
Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/thermal')
0 files changed, 0 insertions, 0 deletions