[DTrace-devel] [PATCH 1/4] config: surpress output from check-bpfc-option-rule

Kris Van Hees kris.van.hees at oracle.com
Fri May 24 23:57:05 UTC 2024


Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
---
 Makeconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makeconfig b/Makeconfig
index 7249125e..87a601c8 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -177,7 +177,7 @@ $(objdir)/.config/config.$(1).h $(objdir)/.config/config.$(1).mk: $(objdir)/.con
 	     echo 'HAVE_$(1)=y' > $(objdir)/.config/config.$(1).mk;; \
 	xno) echo '/* #undef HAVE_$(1) */' > $(objdir)/.config/config.$(1).h; \
 	     echo '# HAVE_$(1) undefined' > $(objdir)/.config/config.$(1).mk;; \
-	*) if $(BPFC) --help $(2) 2>&1 >/dev/null | grep error; then \
+	*) if $(BPFC) --help $(2) 2>&1 >/dev/null | grep -q error; then \
 	       echo '/* #undef HAVE_$(1) */' > $(objdir)/.config/config.$(1).h; \
 	       echo '# HAVE_$(1) undefined' > $(objdir)/.config/config.$(1).mk; \
 	   else \
-- 
2.42.0




More information about the DTrace-devel mailing list