mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 15:12:36 +02:00
Fix a bug breaking layout file handling in r1373
Florian Zumbiehl discovered that we have broken the -i switch in the last commit resulting in self-contradictory output: http://paste.flashrom.org/view.php?id=707 Corresponding to flashrom svn r1374. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
parent
d5660141ec
commit
1a30d50ad8
@ -235,7 +235,7 @@ int cli_classic(int argc, char *argv[])
|
|||||||
case 'i':
|
case 'i':
|
||||||
/* FIXME: -l has to be specified before -i. */
|
/* FIXME: -l has to be specified before -i. */
|
||||||
tempstr = strdup(optarg);
|
tempstr = strdup(optarg);
|
||||||
if (find_romentry(tempstr)) {
|
if (find_romentry(tempstr) < 0) {
|
||||||
fprintf(stderr, "Error: image %s not found in "
|
fprintf(stderr, "Error: image %s not found in "
|
||||||
"layout file or -i specified before "
|
"layout file or -i specified before "
|
||||||
"-l\n", tempstr);
|
"-l\n", tempstr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user