From eba91588c6ae59b2937b1432d5544b42fe8c4465 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Thu, 22 Dec 2022 15:35:13 +0100 Subject: 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 Reviewed-by: Marco Felsch Link: https://lore.barebox.org/20221222143513.3182725-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer --- common/deep-probe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common') 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 #include #include @@ -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; } } -- cgit v1.2.1