If there is some problem in the flash init/checking code, it's nicer to see the message "Flash:" before crashing. This way the source of the problem is a bit more straightforward.
Signed-off-by: Mike Frysinger <vap...@gentoo.org> --- lib_blackfin/board.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib_blackfin/board.c b/lib_blackfin/board.c index c223711..b3452f8 100644 --- a/lib_blackfin/board.c +++ b/lib_blackfin/board.c @@ -312,8 +312,8 @@ void board_init_r(gd_t * id, ulong dest_addr) #if !defined(CONFIG_SYS_NO_FLASH) /* Initialize the flash and protect u-boot by default */ extern flash_info_t flash_info[]; - ulong size = flash_init(); puts("Flash: "); + ulong size = flash_init(); print_size(size, "\n"); flash_protect(FLAG_PROTECT_SET, CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN - 1, -- 1.6.1.2 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot