Fix error handling in tools/env/fw_env.c
Patch by Ara Avanesyan, 01 Feb 2005
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 @@
 	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;