mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
tools: kwboot: Fix usage of -D without -t
When -D is specified then both bootmsg and debugmsg are not set, but imgpath is set. Fix this check for valid and required parameters. Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
91fb095c0d
commit
a3c6496bb2
1 changed files with 1 additions and 1 deletions
|
@ -1819,7 +1819,7 @@ main(int argc, char **argv)
|
|||
}
|
||||
} while (1);
|
||||
|
||||
if (!bootmsg && !term && !debugmsg)
|
||||
if (!bootmsg && !term && !debugmsg && !imgpath)
|
||||
goto usage;
|
||||
|
||||
ttypath = argv[optind++];
|
||||
|
|
Loading…
Reference in a new issue