mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] selftests: lib.mk: Do not print the build steps with make -s
@ 2026-12-01 18:08 Sasha Levin
  0 siblings, 0 replies; only message in thread
From: Sasha Levin @ 2026-12-01 18:08 UTC (permalink / raw)
  To: Shuah Khan; +Cc: Sasha Levin, linux-kselftest, linux-kernel

lib.mk prints a line for each program it builds, also when make runs
with -s:

  $ make -s -C tools/testing/selftests/acct
    CC       acct_syscall
    CC       taskstats_fill_stats_tgid
    CC       cgroupstats

Leave msg empty with -s, so that only warnings and errors are printed.

Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 tools/testing/selftests/lib.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk
index 506cb26510e4d..8034da31fbc15 100644
--- a/tools/testing/selftests/lib.mk
+++ b/tools/testing/selftests/lib.mk
@@ -70,7 +70,9 @@ Q =
 msg =
 else
 Q = @
+ifeq ($(findstring s,$(firstword -$(MAKEFLAGS))),)
 msg = @printf '  %-8s%s %s%s\n' "$(1)" "$(if $(2), [$(2)])" "$(notdir $(3))" "$(if $(4), $(4))";
+endif
 MAKEFLAGS += --no-print-directory
 endif
 
-- 
2.53.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-01 18:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01 18:08 [PATCH] selftests: lib.mk: Do not print the build steps with make -s Sasha Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®