diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2007-04-14 16:32:59 +0000 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2007-04-14 16:32:59 +0000 |
commit | 0a05d67baba067c823d198937001563c311367b6 (patch) | |
tree | f2ef244e3641ca25f81b8c0eda533601eef075ec /flashrom.c | |
parent | 9a37ba6e9cba7d3126e7706e7dc00004d532fe2e (diff) | |
download | flashrom-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 'flashrom.c')
-rw-r--r-- | flashrom.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/flashrom.c b/flashrom.c index fddefea06..04c86001d 100644 --- a/flashrom.c +++ b/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); |