diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2023-01-20 11:04:28 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-01-20 11:04:28 +0100 |
commit | c95d0b36b69ea90cadf74c741d5a6f51a815bcfa (patch) | |
tree | dd12287c71191ef2f842d27a6ede31dbf944f241 /common | |
parent | a77fef4d29ed63c96c67692ceb6decef4f9cfbe4 (diff) | |
parent | b88d33fcdab54b3b4018b8b1e7c81c16eac247f9 (diff) | |
download | barebox-c95d0b36b69ea90cadf74c741d5a6f51a815bcfa.tar.gz |
Merge branch 'for-next/misc'
Diffstat (limited to 'common')
-rw-r--r-- | common/Kconfig | 9 | ||||
-rw-r--r-- | common/deep-probe.c | 4 |
2 files changed, 12 insertions, 1 deletions
diff --git a/common/Kconfig b/common/Kconfig index e2b810c39c..9e175d36c4 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -1571,6 +1571,15 @@ config DEBUG_INITCALLS help If enabled this will print initcall traces. +config DEBUG_PBL + bool "Print PBL debugging information" + depends on PBL_CONSOLE || DEBUG_LL + help + If enabled this will enable all debug prints in the prebootloader. + For this to work, a console needs to be configured in the + board-specific entry point and configured for either DEBUG_LL + or PBL_CONSOLE. + config DEBUG_PROBES bool "Trace driver probes/removes" help 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; } } |