Skip to content

Commit

Permalink
scripts/checkkconfigsymbols.sh: replace echo -e with printf
Browse files Browse the repository at this point in the history
-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 <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
jcmvbkbc authored and michal42 committed Aug 28, 2013
1 parent 95e2a7d commit 36b5401
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/checkkconfigsymbols.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ paths="$@"
# Doing this once at the beginning saves a lot of time, on a cache-hot tree.
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
do
# Output the bare Kconfig variable and the filename; the _MODULE part at
Expand Down Expand Up @@ -54,6 +54,6 @@ while read symb files; do
# beyond the purpose of this script.
symb_bare=`echo $symb | sed -e 's/_MODULE//'`
if ! grep -q "\<$symb_bare\>" $Kconfigs; then
/bin/echo -e "$files: \t$symb"
printf "$files: \t$symb\n"
fi
done|sort

0 comments on commit 36b5401

Please sign in to comment.