]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Fix error handling in tools/env/fw_env.c
authorWolfgang Denk <wd@pollux.(none)>
Sat, 24 Sep 2005 23:20:38 +0000 (01:20 +0200)
committerWolfgang Denk <wd@pollux.(none)>
Sat, 24 Sep 2005 23:20:38 +0000 (01:20 +0200)
Patch by Ara Avanesyan, 01 Feb 2005

CHANGELOG
tools/env/fw_env.c

index abf5d18eb9cb5d69a5be2452f107f4bd97d92ec7..6c5c15c6835aa091e648d3a7e066464138e12b05 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,9 @@
 Changes for U-Boot 1.1.4:
 ======================================================================
 
+* Fix error handling in tools/env/fw_env.c
+  Patch by Ara Avanesyan, 01 Feb 2005
+
 * Fix MGT5100 PSC baudrate calculation
   Patch by Sebastian Schau, 27 Jan 2005
 
index 09b8b5d7a7c40754d36a69d2b3402ae9a1083f02..74c0498d5a671c415f785b1386d8965585e89405 100644 (file)
@@ -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;