summaryrefslogtreecommitdiffstats
path: root/layout.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2007-04-14 16:32:59 +0000
committerStefan Reinauer <stepan@coresystems.de>2007-04-14 16:32:59 +0000
commit08991cf55e104474c9a751820cafacaca52aa29b (patch)
treef2ef244e3641ca25f81b8c0eda533601eef075ec /layout.c
parent87235b65205eccac25ea645cd87dd5a0f3d0eefc (diff)
downloadflashrom-08991cf55e104474c9a751820cafacaca52aa29b.zip
flashrom-08991cf55e104474c9a751820cafacaca52aa29b.tar.gz
Exit on return code of read_layout and print error message to stderr instead of stdout
Corresponding to flashrom svn r104 and coreboot v2 svn r2610. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
Diffstat (limited to 'layout.c')
-rw-r--r--layout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/layout.c b/layout.c
index 5478782..8ba2e41 100644
--- a/layout.c
+++ b/layout.c
@@ -106,7 +106,8 @@ int read_romlayout(char *name)
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;
}
OpenPOWER on IntegriCloud