From nobody Fri Dec 19 14:22:22 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13F53C83F18 for ; Tue, 29 Aug 2023 11:36:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232017AbjH2LgA (ORCPT ); Tue, 29 Aug 2023 07:36:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232020AbjH2Lfp (ORCPT ); Tue, 29 Aug 2023 07:35:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1176E109; Tue, 29 Aug 2023 04:35:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 965DD60EAE; Tue, 29 Aug 2023 11:35:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DED71C433C8; Tue, 29 Aug 2023 11:35:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693308942; bh=SEm+29cbjH0OCwAWFWoSuP1sSdbIL6i8Z3mrtpUFzk0=; h=From:To:Cc:Subject:Date:From; b=fxwwGSDQUQw4Q5QfZRDz+zr+x7HkaZksrDhPqVSYDf0eogzHxC0TIV37jg/+XENZf THvUDi8u6zWZAC9/j3G0VwQFVdCEnbZS0FN5CgNdfy11tujT0rGrYhaRoFLS11Yemw UuozUawY2Vma1IZqh6bze75GyzGZ6FOxD378v1V3A1OHNon5VxKMp1dIEs8oVKwuOd AK+ybmDLK8S28oeQSxQ0xH+/ohqHqxlpF7yIWBinJfjS1TuQ+Z9A7/oaQrQEQwXl9A vbcTCtugkxl4bjmlaIbewKYaih+Tc2A6EgjWHx6KrUvEReBb4FuZfguwK2WKc12jcX P4E1qMsfttemw== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Christophe Leroy , Michael Ellerman , Nathan Chancellor , Nicholas Piggin , Nick Desaulniers , Nicolas Schier , linuxppc-dev@lists.ozlabs.org Subject: [PATCH] kbuild: single-quote the format string of printf Date: Tue, 29 Aug 2023 20:35:31 +0900 Message-Id: <20230829113531.4004730-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Use single-quotes to avoid escape sequences (\\n). Signed-off-by: Masahiro Yamada --- 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 '') =20 @echo ' make V=3Dn [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 '') =20 =20 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 =20 PHONY +=3D install --=20 2.39.2