summaryrefslogtreecommitdiff
path: root/tools/env/fw_env.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.(none)>2005-09-25 01:20:38 +0200
committerWolfgang Denk <wd@pollux.(none)>2005-09-25 01:20:38 +0200
commite2146b6aea0de16e55530cc5ff58fb626d9870cd (patch)
tree7122a79c9a1dc6f2c11c07c5b46ca8c2f1a05e79 /tools/env/fw_env.c
parent9f221d0738772ba0040793cc3f20ddde18dc4806 (diff)
downloadu-boot-imx-e2146b6aea0de16e55530cc5ff58fb626d9870cd.zip
u-boot-imx-e2146b6aea0de16e55530cc5ff58fb626d9870cd.tar.gz
u-boot-imx-e2146b6aea0de16e55530cc5ff58fb626d9870cd.tar.bz2
Fix error handling in tools/env/fw_env.c
Patch by Ara Avanesyan, 01 Feb 2005
Diffstat (limited to 'tools/env/fw_env.c')
-rw-r--r--tools/env/fw_env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index 09b8b5d..74c0498 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -726,7 +726,7 @@ static int parse_config ()
if (HaveRedundEnv && stat (DEVNAME (1), &st)) {
fprintf (stderr,
"Cannot access MTD device %s: %s\n",
- DEVNAME (2), strerror (errno));
+ DEVNAME (1), strerror (errno));
return 1;
}
return 0;