diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-12-22 17:25:33 +0100 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-01-22 15:43:32 +0100 |
commit | c0d3b83100c896e1b0909023df58a0ebdd428d61 (patch) | |
tree | b98004e9534c5573f04795e27957affb4cf857fc /arch/powerpc | |
parent | kbuild: print short log in addition to the whole command with V=1 (diff) | |
download | linux-c0d3b83100c896e1b0909023df58a0ebdd428d61.tar.xz linux-c0d3b83100c896e1b0909023df58a0ebdd428d61.zip |
kbuild: do not print extra logs for V=2
Some scripts increase the verbose level when V=1, but others when
not V=0.
I think the former is correct because V=2 is not a log level but
a switch to print the reason for rebuilding.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/prom_init_check.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/prom_init_check.sh b/arch/powerpc/kernel/prom_init_check.sh index 311890d71c4c..5a319863f289 100644 --- a/arch/powerpc/kernel/prom_init_check.sh +++ b/arch/powerpc/kernel/prom_init_check.sh @@ -51,11 +51,10 @@ do # a leading . on the name, so strip it off here. UNDEF="${UNDEF#.}" - if [ $KBUILD_VERBOSE ]; then - if [ $KBUILD_VERBOSE -ne 0 ]; then - echo "Checking prom_init.o symbol '$UNDEF'" - fi - fi + case "$KBUILD_VERBOSE" in + *1*) + echo "Checking prom_init.o symbol '$UNDEF'" ;; + esac OK=0 for WHITE in $WHITELIST |