From: Wolfgang Denk Date: Thu, 15 Jul 2010 23:21:16 +0200 Subject: [U-Boot] Usage of bi_env ? In-Reply-To: <4C349814.2000804@googlemail.com> References: <4C349814.2000804@googlemail.com> Message-ID: <20100715212116.D922C153A7E@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 Dirk Behme, In message <4C349814.2000804@googlemail.com> you wrote: > With U-Boot 2010.03 on an ARM board, the output of 'bdinfo' command gives: > > ... > env_t = 0x00000000 > ... > > The code in common/cmd_bdinfo.c for this is > > bd_t *bd = gd->bd; > ... > print_num ("env_t", (ulong)bd->bi_env); > > While checking if 0 for this value is correct or not, it looks to me > that bi_env isn't set anywhere and is unused [1]. And it looks like > bi_env is printed only in the ARM version of bdinfo. Do I miss > anything here? You missed sending a patch that cleans this up :-) 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 The trouble with our times is that the future is not what it used to be. - Paul Valery