diff options
author | Grant Erickson <gerickson@nuovations.com> | 2008-05-06 20:16:15 -0700 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-05-09 23:40:40 +0200 |
commit | bc11756daff89a3de09ca80adac962b88cf06e6e (patch) | |
tree | 9688c4851714884484c3e1834f272cb63e7b4cb6 /tools/env/fw_env.h | |
parent | f3b6d528e4dd719640a4bfcd954f4e4c7f5db0d6 (diff) | |
download | u-boot-imx-bc11756daff89a3de09ca80adac962b88cf06e6e.zip u-boot-imx-bc11756daff89a3de09ca80adac962b88cf06e6e.tar.gz u-boot-imx-bc11756daff89a3de09ca80adac962b88cf06e6e.tar.bz2 |
Propagate Error Status to the Shell on fw_printenv Errors
Changed implementation such that fw_printenv returns failure status
when one or more specified variables do not exist or when incorrect
command syntax is used.
This aids scripting fw_printenv such that the script can key of the
return status rather than relying on standard error "scraping".
Signed-off-by: Grant Erickson <gerickson@nuovations.com>
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'tools/env/fw_env.h')
-rw-r--r-- | tools/env/fw_env.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/env/fw_env.h b/tools/env/fw_env.h index 58607de..248f58c 100644 --- a/tools/env/fw_env.h +++ b/tools/env/fw_env.h @@ -1,5 +1,5 @@ /* - * (C) Copyright 2002 + * (C) Copyright 2002-2008 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * * See file CREDITS for list of people who contributed to this @@ -47,7 +47,7 @@ "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; " \ "bootm" -extern void fw_printenv(int argc, char *argv[]); +extern int fw_printenv(int argc, char *argv[]); extern char *fw_getenv (char *name); extern int fw_setenv (int argc, char *argv[]); |