From: Wolfgang Denk Date: Fri, 12 Feb 2010 16:27:32 +0100 Subject: [U-Boot] [PATCH]: common/cmd_flash.c: bug-fix In-Reply-To: <89D4E2CB6B654B3FB0DA6A0CE6650515@smartbridges.com> References: <1B4B728CB312483CB5A7BE72ECC00C67@smartbridges.com> <89D4E2CB6B654B3FB0DA6A0CE6650515@smartbridges.com> Message-ID: <20100212152732.85063E8CCE4@gemini.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 Dear "Teh Kok How", In message <89D4E2CB6B654B3FB0DA6A0CE6650515@smartbridges.com> you wrote: > > --- u-boot-2009.11.1.orig/common/cmd_flash.c 2010-01-25 > 16:35:12.000000000 +0800 > +++ u-boot-2009.11.1.new/common/cmd_flash.c 2010-02-12 > 16:18:10.565540182 +0800 > @@ -43,6 +43,7 @@ > > #ifndef CONFIG_SYS_NO_FLASH > extern flash_info_t flash_info[]; /* info for FLASH chips */ > +extern struct mtd_device *current_mtd_dev; > > /* > * The user interface starts numbering for Flash banks with 1 > @@ -331,6 +332,7 @@ > u8 dev_type, dev_num, pnum; > #endif > int rcode = 0; > + char mtd_dev[10]; Where is this magic constant 10 coming from? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Why is an average signature file longer than an average Perl script??