From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Wed, 18 Aug 2010 09:28:16 +0200 Subject: [U-Boot] [PATCH] cfi_flash: Cleanup flash_print_info() In-Reply-To: <1281696182-19371-1-git-send-email-sr@denx.de> References: <1281696182-19371-1-git-send-email-sr@denx.de> Message-ID: <201008180928.16435.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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