summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-12-22 15:35:13 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-01-04 13:16:49 +0100
commiteba91588c6ae59b2937b1432d5544b42fe8c4465 (patch)
treefa3ac91af246135cc3ab03ecb9550af78b88e7d8 /common
parentc1491e162d0db834c8d356f26643fc881671e2bb (diff)
downloadbarebox-eba91588c6ae59b2937b1432d5544b42fe8c4465.tar.gz
barebox-eba91588c6ae59b2937b1432d5544b42fe8c4465.tar.xz
common: deep-probe: write deep probe enabled message to log
The "Deep probe supported due to" was not written to log and thus only shown on startup and not in dmesg output. Make it available in both. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Reviewed-by: Marco Felsch <m.felsch@pengutronix.de> Link: https://lore.barebox.org/20221222143513.3182725-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/deep-probe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/deep-probe.c b/common/deep-probe.c
index 1020ad93b7..931e5a1770 100644
--- a/common/deep-probe.c
+++ b/common/deep-probe.c
@@ -1,5 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-only
+#define pr_fmt(fmt) "deep-probe: " fmt
+
#include <common.h>
#include <deep-probe.h>
#include <of.h>
@@ -27,7 +29,7 @@ bool deep_probe_is_supported(void)
for (; matches->compatible; matches++) {
if (of_machine_is_compatible(matches->compatible)) {
boardstate = DEEP_PROBE_SUPPORTED;
- printk("Deep probe supported due to %s\n", matches->compatible);
+ pr_info("supported due to %s\n", matches->compatible);
return true;
}
}