From: Masahiro Yamada <masahiroy@kernel.org>
To: linux-kbuild@vger.kernel.org
Cc: linux-kernel@vger.kernel.org,
Masahiro Yamada <masahiroy@kernel.org>,
Christophe Leroy <christophe.leroy@csgroup.eu>,
Michael Ellerman <mpe@ellerman.id.au>,
Nathan Chancellor <nathan@kernel.org>,
Nicholas Piggin <npiggin@gmail.com>,
Nick Desaulniers <ndesaulniers@google.com>,
Nicolas Schier <nicolas@fjasle.eu>,
linuxppc-dev@lists.ozlabs.org
Subject: [PATCH] kbuild: single-quote the format string of printf
Date: Tue, 29 Aug 2023 20:35:31 +0900 [thread overview]
Message-ID: <20230829113531.4004730-1-masahiroy@kernel.org> (raw)
Use single-quotes to avoid escape sequences (\\n).
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---
Makefile | 8 ++++----
arch/powerpc/Makefile | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
index 87a9eef3fb4b..d09600f7a036 100644
--- a/Makefile
+++ b/Makefile
@@ -1643,12 +1643,12 @@ help:
@echo ''
@$(if $(boards), \
$(foreach b, $(boards), \
- printf " %-27s - Build for %s\\n" $(b) $(subst _defconfig,,$(b));) \
+ printf ' %-27s - Build for %s\n' $(b) $(subst _defconfig,,$(b));) \
echo '')
@$(if $(board-dirs), \
$(foreach b, $(board-dirs), \
- printf " %-16s - Show %s-specific targets\\n" help-$(b) $(b);) \
- printf " %-16s - Show all of the above\\n" help-boards; \
+ printf ' %-16s - Show %s-specific targets\n' help-$(b) $(b);) \
+ printf ' %-16s - Show all of the above\n' help-boards; \
echo '')
@echo ' make V=n [targets] 1: verbose build'
@@ -1684,7 +1684,7 @@ $(help-board-dirs): help-%:
@echo 'Architecture specific targets ($(SRCARCH) $*):'
@$(if $(boards-per-dir), \
$(foreach b, $(boards-per-dir), \
- printf " %-24s - Build for %s\\n" $*/$(b) $(subst _defconfig,,$(b));) \
+ printf ' %-24s - Build for %s\n' $*/$(b) $(subst _defconfig,,$(b));) \
echo '')
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index dac7ca153886..f49ac05eae20 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -353,7 +353,7 @@ define archhelp
echo ' (minus the .dts extension).'
echo
$(foreach cfg,$(generated_configs),
- printf " %-27s - Build for %s\\n" $(cfg) $(subst _defconfig,,$(cfg));)
+ printf ' %-27s - Build for %s\n' $(cfg) $(subst _defconfig,,$(cfg));)
endef
PHONY += install
--
2.39.2
next reply other threads:[~2023-08-29 11:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-29 11:35 Masahiro Yamada [this message]
2023-08-29 12:00 ` [PATCH] kbuild: single-quote the format string of printf Nicolas Schier
2023-08-30 11:33 ` Masahiro Yamada
2023-08-30 13:00 ` David Laight
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230829113531.4004730-1-masahiroy@kernel.org \
--to=masahiroy@kernel.org \
--cc=christophe.leroy@csgroup.eu \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=nathan@kernel.org \
--cc=ndesaulniers@google.com \
--cc=nicolas@fjasle.eu \
--cc=npiggin@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox