[PATCH v2 1/3] ARM: start: print debugging info when CONFIG_DEBUG_INITCALLS
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Dec 12 08:42:10 PST 2022
CONFIG_INITCALL_DEBUG can be very useful to debug early barebox hangs,
but it doesn't help when the hang happens just before. In this case,
enable the early barebox proper debug messages.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
v1 -> v2:
- reworded commit message after changes to now 3rd commit
---
arch/arm/cpu/start.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/cpu/start.c b/arch/arm/cpu/start.c
index f9b617aa855a..be303514c23d 100644
--- a/arch/arm/cpu/start.c
+++ b/arch/arm/cpu/start.c
@@ -3,6 +3,10 @@
#define pr_fmt(fmt) "start.c: " fmt
+#ifdef CONFIG_DEBUG_INITCALLS
+#define DEBUG
+#endif
+
#include <common.h>
#include <init.h>
#include <linux/sizes.h>
--
2.30.2
More information about the barebox
mailing list