arm: mvebu: Use printf for printing fatal errors
Subsystems (3)
PATCH 1/1 arm: mvebu: Use printf for printing fatal errors
There is no point to hide/disable fatal errors via debug() macro. Print fatal errors loudly.
Signed-off-by Pali Rohár <[email protected]>
--- arch/arm/mach-mvebu/spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-mvebu/spl.c +2 -2
@@ -313,7 +313,7 @@ void board_init_f(ulong dummy) ret =spl_init ();if (ret) { -debug ("spl_init() failed: %d\n" , ret); +printf ("spl_init() failed: %d\n" , ret);hang (); }
@@ -329,7 +329,7 @@ void board_init_f(ulong dummy)/* Setup DDR */ ret =ddr3_init ();if (ret) { -debug ("ddr3_init() failed: %d\n" , ret); +printf ("ddr3_init() failed: %d\n" , ret);hang (); }#endif
Signature · 1 line
2.20.1
Quoted 4 lines · Pali Rohár
There is no point to hide/disable fatal errors via
debug()macro. Print fatal errors loudly.Signed-off-by Pali Rohár <[email protected]>
Reviewed-by Stefan Roese <[email protected]>
Thanks,
Stefan
Quoted 19 lines
--- arch/arm/mach-mvebu/spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm/mach-mvebu/spl.c +1
-1@@ -313,7 +313,7 @@ void board_init_f(ulong dummy) ret =spl_init ();if (ret) { -debug ("spl_init() failed: %d\n" , ret); +printf ("spl_init() failed: %d\n" , ret);hang (); }
arch/arm/mach-mvebu/spl.c void board_init_f(ulong dummy) · line 335
Quoted 8 lines
arch/arm/mach-mvebu/spl.c +1
-1@@ -329,7 +329,7 @@ void board_init_f(ulong dummy)/* Setup DDR */ ret =ddr3_init ();if (ret) { -debug ("ddr3_init() failed: %d\n" , ret); +printf ("ddr3_init() failed: %d\n" , ret);hang (); }#endif
Viele Grüße,
Stefan Roese
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
Quoted 4 lines · Pali Rohár
There is no point to hide/disable fatal errors via
debug()macro. Print fatal errors loudly.Signed-off-by Pali Rohár <[email protected]>
Applied to u-boot-marvell/next
Thanks,
Stefan
Quoted 19 lines
--- arch/arm/mach-mvebu/spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm/mach-mvebu/spl.c +1
-1@@ -313,7 +313,7 @@ void board_init_f(ulong dummy) ret =spl_init ();if (ret) { -debug ("spl_init() failed: %d\n" , ret); +printf ("spl_init() failed: %d\n" , ret);hang (); }
arch/arm/mach-mvebu/spl.c void board_init_f(ulong dummy) · line 335
Quoted 8 lines
arch/arm/mach-mvebu/spl.c +1
-1@@ -329,7 +329,7 @@ void board_init_f(ulong dummy)/* Setup DDR */ ret =ddr3_init ();if (ret) { -debug ("ddr3_init() failed: %d\n" , ret); +printf ("ddr3_init() failed: %d\n" , ret);hang (); }#endif
Viele Grüße,
Stefan Roese
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]