mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-26 22:52:34 +02:00
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>
This commit is contained in:
parent
9a37ba6e9c
commit
0a05d67bab
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user