[LinuxBIOS] r2610 - trunk/LinuxBIOSv2/util/flashrom

svn at openbios.org svn at openbios.org
Sat Apr 14 18:33:00 CEST 2007


Author: stepan
Date: 2007-04-14 18:32:59 +0200 (Sat, 14 Apr 2007)
New Revision: 2610

Modified:
   trunk/LinuxBIOSv2/util/flashrom/flashrom.c
   trunk/LinuxBIOSv2/util/flashrom/layout.c
Log:
Exit on return code of read_layout and print error message to stderr
instead of stdout (trivial)

Signed-off-by: Stefan Reinauer <stepan at coresystems.de>
Acked-by: Stefan Reinauer <stepan at coresystems.de>



Modified: trunk/LinuxBIOSv2/util/flashrom/flashrom.c
===================================================================
--- trunk/LinuxBIOSv2/util/flashrom/flashrom.c	2007-04-12 01:23:12 UTC (rev 2609)
+++ trunk/LinuxBIOSv2/util/flashrom/flashrom.c	2007-04-14 16:32:59 UTC (rev 2610)
@@ -303,7 +303,8 @@
 			break;
 		case 'l':
 			tempstr=strdup(optarg);
-			read_romlayout(tempstr);
+			if (read_romlayout(tempstr))
+				exit(1);
 			break;
 		case 'i':
 			tempstr=strdup(optarg);

Modified: trunk/LinuxBIOSv2/util/flashrom/layout.c
===================================================================
--- trunk/LinuxBIOSv2/util/flashrom/layout.c	2007-04-12 01:23:12 UTC (rev 2609)
+++ trunk/LinuxBIOSv2/util/flashrom/layout.c	2007-04-14 16:32:59 UTC (rev 2610)
@@ -106,7 +106,8 @@
 	romlayout=fopen (name, "r");
 	
 	if(!romlayout) {
-		printf("Error while opening rom layout (%s).\n", name);
+		fprintf(stderr, "ERROR: Could not open rom layout (%s).\n", 
+				name);
 		return -1;
 	}
 	





More information about the coreboot mailing list