[U-Boot] [PATCH 0/10] Add getenv_ulong to return an environment var as a number
Simon Glass
sjg at chromium.org
Sat Oct 15 01:28:20 CEST 2011
Hi Mike,
On Fri, Oct 14, 2011 at 2:33 PM, Mike Frysinger <vapier at gentoo.org> wrote:
> 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
>
Since there is a flag to tell you, I don't think so - but anyway we
are back to v2, so let's see how that goes.
Regards,
Simon
More information about the U-Boot
mailing list