diff options
author | Guillaume Tucker <[email protected]> | 2023-02-09 09:55:36 +0100 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2023-02-13 09:09:46 -0700 |
commit | 9e34fad00fc889abbb99d751a4c22cf2bded10df (patch) | |
tree | 865e349beff94bb4b375168e70d2e4f36f5352f5 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 1e6b485c922fbedf41d5a9f4e6449c5aeb923a32 (diff) |
selftests: use printf instead of echo -ne
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" <[email protected]>
Suggested-by: David Laight <[email protected]>
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 <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions