diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-12-23 01:25:33 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-01-22 23:43:32 +0900 |
commit | c0d3b83100c896e1b0909023df58a0ebdd428d61 (patch) | |
tree | b98004e9534c5573f04795e27957affb4cf857fc /arch/powerpc/kernel | |
parent | 8962b6b475bddc011c414f40ffd02f0ed4e02771 (diff) | |
download | linux-stable-c0d3b83100c896e1b0909023df58a0ebdd428d61.tar.gz linux-stable-c0d3b83100c896e1b0909023df58a0ebdd428d61.tar.bz2 linux-stable-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/kernel')
-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 |