ソースを参照

Fix error handling in tools/env/fw_env.c
Patch by Ara Avanesyan, 01 Feb 2005

Wolfgang Denk 19 年 前
コミット
e2146b6aea
2 ファイル変更4 行追加1 行削除
  1. 3 0
      CHANGELOG
  2. 1 1
      tools/env/fw_env.c

+ 3 - 0
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
 

+ 1 - 1
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;