summaryrefslogtreecommitdiff
path: root/util/flashrom/flashrom.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2007-04-14 16:32:59 +0000
committerStefan Reinauer <stepan@openbios.org>2007-04-14 16:32:59 +0000
commitf1291cfdfc6db3922b8aa4672b5511104671788a (patch)
treee4eff2616d14562b79a2ff562486590a8db6dd67 /util/flashrom/flashrom.c
parent0594222eceb5ba642edf813373dd7c979520fcd3 (diff)
downloadcoreboot-f1291cfdfc6db3922b8aa4672b5511104671788a.tar.xz
Exit on return code of read_layout and print error message to stderr
instead of stdout (trivial) Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2610 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom/flashrom.c')
-rw-r--r--util/flashrom/flashrom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/flashrom/flashrom.c b/util/flashrom/flashrom.c
index fddefea06d..04c86001d3 100644
--- a/util/flashrom/flashrom.c
+++ b/util/flashrom/flashrom.c
@@ -303,7 +303,8 @@ int main(int argc, char *argv[])
break;
case 'l':
tempstr=strdup(optarg);
- read_romlayout(tempstr);
+ if (read_romlayout(tempstr))
+ exit(1);
break;
case 'i':
tempstr=strdup(optarg);