Skip to content
Snippets Groups Projects
Forked from KED Software Projects / Miscellaneous / KED U-Boot Fork
Source project has a limited visibility.
  • Wolfgang Denk's avatar
    a02a884b
    cmd_nvedit.c: make error message more helpful · a02a884b
    Wolfgang Denk authored
    
    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: default avatarWolfgang Denk <wd@denx.de>
    a02a884b
    History
    cmd_nvedit.c: make error message more helpful
    Wolfgang Denk authored
    
    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: default avatarWolfgang Denk <wd@denx.de>