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 <[EMAIL PROTECTED]>
Acked-by: Stefan Reinauer <[EMAIL PROTECTED]>



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;
        }
        


-- 
linuxbios mailing list
[EMAIL PROTECTED]
http://www.linuxbios.org/mailman/listinfo/linuxbios

Reply via email to