diff options
| author | Wolfgang Denk <wd@denx.de> | 2012-09-03 21:22:12 +0200 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2012-09-03 21:22:12 +0200 | 
| commit | f499131867de260c09ad0fafd7dbc3bb5fda3eb4 (patch) | |
| tree | 58c3e51745db59d367200c2f55c642617ce30cfe /common/cmd_flash.c | |
| parent | 6c43d11f3db5289398f882fc9d4158c5abe3a344 (diff) | |
| parent | de15a06aad1f221255366ac07238c80fed146da1 (diff) | |
| download | olio-uboot-2014.01-f499131867de260c09ad0fafd7dbc3bb5fda3eb4.tar.xz olio-uboot-2014.01-f499131867de260c09ad0fafd7dbc3bb5fda3eb4.zip  | |
Merge branch 'master' of git://git.denx.de/u-boot-cfi-flash
* 'master' of git://git.denx.de/u-boot-cfi-flash:
  cfi: Make the flash erase and write operations abortable
  cfi: Check for blank before erase
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'common/cmd_flash.c')
| -rw-r--r-- | common/cmd_flash.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/common/cmd_flash.c b/common/cmd_flash.c index 0e9b2e3c7..e55d366c6 100644 --- a/common/cmd_flash.c +++ b/common/cmd_flash.c @@ -443,7 +443,8 @@ int flash_sect_erase (ulong addr_first, ulong addr_last)  				rcode = flash_erase (info, s_first[bank], s_last[bank]);  			}  		} -		printf ("Erased %d sectors\n", erased); +		if (rcode == 0) +			printf("Erased %d sectors\n", erased);  	} else if (rcode == 0) {  		puts ("Error: start and/or end address"  			" not on sector boundary\n");  |