]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mips: cpu: Use plain puts() in restart handler
authorMarek Vasut <marex@denx.de>
Fri, 23 Jun 2023 18:49:21 +0000 (20:49 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 24 Jun 2023 17:46:55 +0000 (13:46 -0400)
This removes dependency on fprintf() , which is not available
in SPL unless full printf support is enabled.

Signed-off-by: Marek Vasut <marex@denx.de>
arch/mips/cpu/cpu.c

index b304026a67c72545d5c785ee1767ac155d021fac..f0e20da28f76ec71010aac54be6ff6b79d900e19 100644 (file)
@@ -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 */;