[U-Boot] [PATCH v4 01/10] Add getenv_ulong() to read an integer from an environment variable

Wolfgang Denk wd at denx.de
Sun Oct 23 22:49:35 CEST 2011


Dear Simon Glass,

In message <1318634718-10548-1-git-send-email-sjg at chromium.org> you wrote:
> This is not an uncommon operation in U-Boot, so let's put it in a common
> function.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> Changes in v2:
> - Fix commit title from getenv_int() to getenv_ulong()
> 
> Changes in v3:
> - Move getenv_ulong() function comment into C file
> - Add special code for early environment access
> 
> Changes in v4:
> - Change getenv_ulong() implementation back to version 2
> - Add a comment as to why this is ok
> 
>  common/cmd_nvedit.c |   20 ++++++++++++++++++++
>  include/common.h    |    1 +
>  2 files changed, 21 insertions(+), 0 deletions(-)

Applied, thanks.

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
It must be remembered that there is nothing more difficult  to  plan,
more  doubtful  of  success,  nor  more dangerous to manage, than the
creation of a new system. For the initiator has the enmity of all who
would profit by the preservation of the old institutions  and  merely
lukewarm defenders in those who would gain by the new ones.
- Machiavelli


More information about the U-Boot mailing list