summaryrefslogtreecommitdiffstats
path: root/common/env_common.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2013-02-20 04:53:16 +0000
committerTom Rini <trini@ti.com>2013-03-12 12:43:31 -0400
commit7d85591dda47f62e73d878d2d0ea5bd0ff2528ad (patch)
treef001c7711f1a93669cdef38c3213669b70e1abba /common/env_common.c
parent01fac041cb32408a4fc5f4617381da6ec609a8dc (diff)
downloadblackbird-obmc-uboot-7d85591dda47f62e73d878d2d0ea5bd0ff2528ad.tar.gz
blackbird-obmc-uboot-7d85591dda47f62e73d878d2d0ea5bd0ff2528ad.zip
env: fix "env ask" command
The "env ask" traditionally uses a somewhat awkward syntax: env ask name [message ...] [size] So far, when a mesage was given, you always also had to enter a size. If you forgot to do that, the command would terminate without any indication of the problem. To avoid incompatible changes of the interface, we now check the last argument if it can be converted into a decimal number. If this is the case, we assume it is a size; otherwise we treat it as part of the message. Also, add a space after the message fore easier reading, and clean up help mesage. Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'common/env_common.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud