summaryrefslogtreecommitdiffstats
path: root/layout.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2007-04-14 16:32:59 +0000
committerStefan Reinauer <stefan.reinauer@coreboot.org>2007-04-14 16:32:59 +0000
commit0a05d67baba067c823d198937001563c311367b6 (patch)
treef2ef244e3641ca25f81b8c0eda533601eef075ec /layout.c
parent9a37ba6e9cba7d3126e7706e7dc00004d532fe2e (diff)
downloadflashrom-0a05d67baba067c823d198937001563c311367b6.tar.gz
flashrom-0a05d67baba067c823d198937001563c311367b6.tar.bz2
flashrom-0a05d67baba067c823d198937001563c311367b6.zip
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 5478782f4..8ba2e4153 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;
}