From: Mike Frysinger Date: Fri, 14 Oct 2011 17:33:37 -0400 Subject: [U-Boot] [PATCH 0/10] Add getenv_ulong to return an environment var as a number In-Reply-To: <20111014192759.AF0EA14094B2@gemini.denx.de> References: <1318552994-6653-1-git-send-email-sjg@chromium.org> <20111014192759.AF0EA14094B2@gemini.denx.de> Message-ID: <201110141733.39214.vapier@gentoo.org> 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 14 October 2011 15:27:59 Wolfgang Denk wrote: > Simon Glass wrote: > > > and I cannot see how getenv_int() would work before relocation. > > > > From what I can tell the existing getenv() function deals with this > > automatically by looking at the global flags. > > This is intended just for emergency cases to fix a number of places > where code is broken, and maintainers don't bother to fix their code. > > It is NOT recommended to use this in general. > > Please do NOT replace the use of getenv_f() with (direct or indirect) > calls to getenv(). should we have getenv_ulong() and getenv_ulong_r() then ? -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20111014/6a238260/attachment.pgp