提交 36b5401b 编写于 作者: M Max Filippov 提交者: Michal Marek

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: NMax Filippov <jcmvbkbc@gmail.com>
Signed-off-by: NMichal Marek <mmarek@suse.cz>
上级 95e2a7d8
...@@ -9,7 +9,7 @@ paths="$@" ...@@ -9,7 +9,7 @@ paths="$@"
# Doing this once at the beginning saves a lot of time, on a cache-hot tree. # Doing this once at the beginning saves a lot of time, on a cache-hot tree.
Kconfigs="`find . -name 'Kconfig' -o -name 'Kconfig*[^~]'`" Kconfigs="`find . -name 'Kconfig' -o -name 'Kconfig*[^~]'`"
/bin/echo -e "File list \tundefined symbol used" printf "File list \tundefined symbol used\n"
find $paths -name '*.[chS]' -o -name 'Makefile' -o -name 'Makefile*[^~]'| while read i find $paths -name '*.[chS]' -o -name 'Makefile' -o -name 'Makefile*[^~]'| while read i
do do
# Output the bare Kconfig variable and the filename; the _MODULE part at # Output the bare Kconfig variable and the filename; the _MODULE part at
...@@ -54,6 +54,6 @@ while read symb files; do ...@@ -54,6 +54,6 @@ while read symb files; do
# beyond the purpose of this script. # beyond the purpose of this script.
symb_bare=`echo $symb | sed -e 's/_MODULE//'` symb_bare=`echo $symb | sed -e 's/_MODULE//'`
if ! grep -q "\<$symb_bare\>" $Kconfigs; then if ! grep -q "\<$symb_bare\>" $Kconfigs; then
/bin/echo -e "$files: \t$symb" printf "$files: \t$symb\n"
fi fi
done|sort done|sort
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册