[U-Boot] [PATCH] cfi_flash: Cleanup flash_print_info()

Stefan Roese sr at denx.de
Wed Aug 18 09:28:16 CEST 2010


On Friday 13 August 2010 12:43:02 Stefan Roese wrote:
> This patch does the following:
> 
> - Extract code to detect if sector is erased into function
>   sector_erased().
> - Because of this, we don't have variable declarations inside the
>   sector loop in flash_print_info()
> - Change "return" to "break" in the "if (ctrlc()) statement:
>   This fixes a problem with the resulting output. Before this
>   patch the output was:
> 
>   Sector Start Addresses:
>   FC000000        FC020000        FC040000   =>
> 
>   With this patch it is now:
> 
>   Sector Start Addresses:
>   FC000000        FC020000        FC040000
>   =>

Applied to u-boot-cfi-flash/master. Thanks. 

Cheers,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de


More information about the U-Boot mailing list