[PATCH 1/6] mips: cpu: Use plain puts() in restart handler
Marek Vasut
marex at denx.de
Mon Jun 26 10:52:53 CEST 2023
This removes dependency on fprintf() , which is not available
in SPL unless full printf support is enabled.
Signed-off-by: Marek Vasut <marex at denx.de>
---
Cc: Daniel Schwierzeck <daniel.schwierzeck at gmail.com>
Cc: Marek Vasut <marex at denx.de>
---
arch/mips/cpu/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/cpu/cpu.c b/arch/mips/cpu/cpu.c
index b304026a67c..f0e20da28f7 100644
--- a/arch/mips/cpu/cpu.c
+++ b/arch/mips/cpu/cpu.c
@@ -15,7 +15,7 @@
#if !CONFIG_IS_ENABLED(SYSRESET)
void __weak _machine_restart(void)
{
- fprintf(stderr, "*** reset failed ***\n");
+ puts("*** reset failed ***\n");
while (1)
/* NOP */;
--
2.40.1
More information about the U-Boot
mailing list