diff options
author | Pali Rohár <pali@kernel.org> | 2022-01-25 20:13:12 +0300 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2022-01-31 12:23:38 +0300 |
commit | a3c6496bb2e19e7ae8618ae70ee13aecebfaaf88 (patch) | |
tree | 5deec030c14b17c8a7c015886c688dd13c70c247 /tools | |
parent | 91fb095c0dc8390bee2442e7b635e2a93bb31c4a (diff) | |
download | u-boot-a3c6496bb2e19e7ae8618ae70ee13aecebfaaf88.tar.xz |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/kwboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/kwboot.c b/tools/kwboot.c index fca1c73c55..859559fb72 100644 --- a/tools/kwboot.c +++ b/tools/kwboot.c @@ -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++]; |