stm32mp1: use debug() for image entry point message
Subsystems (3)
PATCH 1/1 stm32mp1: use debug() for image entry point message
The stm32mp1 specific code prints the image entry point unconditionally before jumping to the next-stage image, unlike the generic SPL implementation in common/spl/spl.c.
--- arch/arm/mach-stm32mp/stm32mp1/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-stm32mp/stm32mp1/cpu.c +1 -1
@@ -361,7 +361,7 @@ void __noreturn jump_to_image(struct spl_image_info *spl_image)image_entry_stm32_t image_entry = (image_entry_stm32_t )spl_image->entry_point; -printf ("image entry point: 0x%lx\n" , spl_image->entry_point); +debug ("image entry point: 0x%lx\n" , spl_image->entry_point); image_entry(romapi); }#endif
Signature · 1 line
2.52.0
Quoted 14 lines · Sean Nyekjaer
The stm32mp1 specific code prints the image entry point unconditionally before jumping to the next-stage image, unlike the generic SPL implementation in
common/spl/spl.c.Signed-off-by Sean Nyekjaer <[email protected]>--- arch/arm/mach-stm32mp/stm32mp1/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-stm32mp/stm32mp1/cpu.c +0
-0
arch/arm/mach-stm32mp/stm32mp1/cpu.c void __noreturn jump_to_image(struct spl_image_info *spl_image) · line 367
Quoted 8 lines
arch/arm/mach-stm32mp/stm32mp1/cpu.c +1
-1@@ -361,7 +361,7 @@ void __noreturn jump_to_image(struct spl_image_info *spl_image)image_entry_stm32_t image_entry = (image_entry_stm32_t )spl_image->entry_point; -printf ("image entry point: 0x%lx\n" , spl_image->entry_point); +debug ("image entry point: 0x%lx\n" , spl_image->entry_point); image_entry(romapi); }#endif
+ Marek, as he is the author of the path which brang jump_to_image()
Personally i don't mind of usage either printk() or debug(). Marek, what do you prefer ?
Thanks
Patrice
Quoted 28 lines · Patrice CHOTARD
Quoted 14 lines · Sean Nyekjaer
The stm32mp1 specific code prints the image entry point unconditionally before jumping to the next-stage image, unlike the generic SPL implementation in
common/spl/spl.c.Signed-off-by Sean Nyekjaer <[email protected]>--- arch/arm/mach-stm32mp/stm32mp1/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-stm32mp/stm32mp1/cpu.c +0
-0arch/arm/mach-stm32mp/stm32mp1/cpu.c void __noreturn jump_to_image(struct spl_image_info *spl_image) · line 367
Quoted 8 lines
arch/arm/mach-stm32mp/stm32mp1/cpu.c +1
-1@@ -361,7 +361,7 @@ void __noreturn jump_to_image(struct spl_image_info *spl_image)image_entry_stm32_t image_entry = (image_entry_stm32_t )spl_image->entry_point; -printf ("image entry point: 0x%lx\n" , spl_image->entry_point); +debug ("image entry point: 0x%lx\n" , spl_image->entry_point); image_entry(romapi); }#endif + Marek, as he is the author of the path which brang
jump_to_image()
Quoted 2 lines
Personally i don't mind of usage either
printk()ordebug(). Marek, what do you prefer ?
debug() is fine, thanks !
Patrice CHOTARD
Reviewed-byQuoted 28 lines · Marek Vasut
Quoted 27 lines · Patrice CHOTARD
Quoted 14 lines · Sean Nyekjaer
The stm32mp1 specific code prints the image entry point unconditionally before jumping to the next-stage image, unlike the generic SPL implementation in
common/spl/spl.c.Signed-off-by Sean Nyekjaer <[email protected]>---
arch/arm/mach-stm32mp/stm32mp1/cpu.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-stm32mp/stm32mp1/cpu.c +0
-0@@ -361,7 +361,7 @@ void __noreturn jump_to_image(struct spl_image_info *spl_image)Quoted 7 lines
image_entry_stm32_timage_entry= (image_entry_stm32_t)spl_image->entry_point;
-printf("image entry point: 0x%lx\n", spl_image->entry_point); +debug("image entry point: 0x%lx\n", spl_image->entry_point);image_entry(romapi);
}
#endif+ Marek, as he is the author of the path which brang
jump_to_image()
Quoted 3 lines
Quoted 2 lines
Personally i don't mind of usage either
printk()ordebug(). Marek, what do you prefer ?
debug()is fine, thanks !
Thanks
Patrice