From 0a05d67baba067c823d198937001563c311367b6 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Sat, 14 Apr 2007 16:32:59 +0000 Subject: 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 Acked-by: Stefan Reinauer --- flashrom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'flashrom.c') diff --git a/flashrom.c b/flashrom.c index fddefea0..04c86001 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); -- cgit v1.2.3