Skip to contentSkip to conversation

arm: mvebu: Use printf for printing fatal errors

PATCH In review Pali Rohár 2 participants 3 messages Dec 17, 2021 – Dec 18, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---
 arch/arm/mach-mvebu/spl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-mvebu/spl.c +2 -2
index 29a8adc9d79c..609495097585 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Pali Rohár

There is no point to hide/disable fatal errors via debug() macro. Print fatal errors loudly.

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
index 29a8adc9d79c..609495097585 100644
@@ -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]
#2 lore raw
In reply to Pali Rohár
Quoted 4 lines · Pali Rohár

There is no point to hide/disable fatal errors via debug() macro. Print fatal errors loudly.

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
index 29a8adc9d79c..609495097585 100644
@@ -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]