mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2 1/5] common: deep-probe: inform only about lack of deep-probe support
@ 2025-06-02  9:57 Ahmad Fatoum
  2025-06-02  9:57 ` [PATCH v2 2/5] common: deep-probe: support specifying support in DT Ahmad Fatoum
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Ahmad Fatoum @ 2025-06-02  9:57 UTC (permalink / raw)
  To: barebox; +Cc: Marco Felsch, Ahmad Fatoum

Instead of printing an info message when deep-probe is enabled, print a
message when it is disabled.

Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
v1 -> v2:
  - Collected Marco's R-b
---
 common/deep-probe.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/common/deep-probe.c b/common/deep-probe.c
index 69beaf2d8066..ab1da87b626b 100644
--- a/common/deep-probe.c
+++ b/common/deep-probe.c
@@ -2,6 +2,10 @@
 
 #define pr_fmt(fmt) "deep-probe: " fmt
 
+#if defined(CONFIG_DEBUG_INITCALLS) || defined(CONFIG_DEBUG_PROBES)
+#define DEBUG
+#endif
+
 #include <common.h>
 #include <deep-probe.h>
 #include <of.h>
@@ -29,13 +33,14 @@ bool deep_probe_is_supported(void)
 		for (; matches->compatible; matches++) {
 			if (of_machine_is_compatible(matches->compatible)) {
 				boardstate = DEEP_PROBE_SUPPORTED;
-				pr_info("supported due to %s\n", matches->compatible);
+				pr_debug("supported due to %s\n", matches->compatible);
 				return true;
 			}
 		}
 	}
 
 	boardstate = DEEP_PROBE_NOT_SUPPORTED;
+	pr_info("not activated\n");
 	return false;
 }
 EXPORT_SYMBOL_GPL(deep_probe_is_supported);
-- 
2.39.5




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-06-02 10:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-02  9:57 [PATCH v2 1/5] common: deep-probe: inform only about lack of deep-probe support Ahmad Fatoum
2025-06-02  9:57 ` [PATCH v2 2/5] common: deep-probe: support specifying support in DT Ahmad Fatoum
2025-06-02 10:09   ` Marco Felsch
2025-06-02  9:57 ` [PATCH v2 3/5] treewide: dts: describe deep probe support in device tree Ahmad Fatoum
2025-06-02  9:57 ` [PATCH v2 4/5] ARM: configs: enable deep probe for the most popular configs Ahmad Fatoum
2025-06-02  9:57 ` [PATCH v2 5/5] Documentation: migration-2025.07.0: document CONFIG_DEEP_PROBE_DEFAULT Ahmad Fatoum
2025-06-02 10:16 ` [PATCH v2 1/5] common: deep-probe: inform only about lack of deep-probe support Sascha Hauer

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