[U-Boot] [PATCH 0/10] Add getenv_ulong to return an environment var as a number

Mike Frysinger vapier at gentoo.org
Fri Oct 14 23:33:37 CEST 2011


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 


More information about the U-Boot mailing list