]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
cmd_nvedit.c: make error message more helpful
authorWolfgang Denk <wd@denx.de>
Wed, 4 May 2011 10:29:49 +0000 (10:29 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 12 May 2011 17:47:14 +0000 (19:47 +0200)
commita02a884b95c47e114a54f2751d03f139f312af2f
tree3c73a9a8160a866d5a9a412f257694ed2b77c269
parent03eb129f8a37f7d7d222e02330cd806d3a0aef1d
cmd_nvedit.c: make error message more helpful

When calling getenv_f() with a too small buffer, it would print an
error message like this:

env_buf too small [32]

This is not really helpful as it does not give any indication which of
the calls might have failed.  Change this into:

env_buf [32 bytes] too small for value of "hwconfig"

so we know at least which variable caused the overflow; this usually
allows to quickly find the related code as well.

Signed-off-by: Wolfgang Denk <wd@denx.de>
common/cmd_nvedit.c