Commit 36b5401b7669302bc4c35cea2e2cf4ae22e489dc
Committed by
Michal Marek
1 parent
95e2a7d807
Exists in
master
and in
20 other branches
scripts/checkkconfigsymbols.sh: replace echo -e with printf
-e is a non-standard echo option, echo output is implementation-dependent when it is used. Replace echo -e with printf as suggested by POSIX echo manual. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
scripts/checkkconfigsymbols.sh
... | ... | @@ -9,7 +9,7 @@ |
9 | 9 | # Doing this once at the beginning saves a lot of time, on a cache-hot tree. |
10 | 10 | Kconfigs="`find . -name 'Kconfig' -o -name 'Kconfig*[^~]'`" |
11 | 11 | |
12 | -/bin/echo -e "File list \tundefined symbol used" | |
12 | +printf "File list \tundefined symbol used\n" | |
13 | 13 | find $paths -name '*.[chS]' -o -name 'Makefile' -o -name 'Makefile*[^~]'| while read i |
14 | 14 | do |
15 | 15 | # Output the bare Kconfig variable and the filename; the _MODULE part at |
... | ... | @@ -54,7 +54,7 @@ |
54 | 54 | # beyond the purpose of this script. |
55 | 55 | symb_bare=`echo $symb | sed -e 's/_MODULE//'` |
56 | 56 | if ! grep -q "\<$symb_bare\>" $Kconfigs; then |
57 | - /bin/echo -e "$files: \t$symb" | |
57 | + printf "$files: \t$symb\n" | |
58 | 58 | fi |
59 | 59 | done|sort |