summaryrefslogtreecommitdiff
path: root/tools/kwboot.c
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-01-25 18:13:12 +0100
committerStefan Roese <sr@denx.de>2022-01-31 10:23:38 +0100
commita3c6496bb2e19e7ae8618ae70ee13aecebfaaf88 (patch)
tree5deec030c14b17c8a7c015886c688dd13c70c247 /tools/kwboot.c
parent91fb095c0dc8390bee2442e7b635e2a93bb31c4a (diff)
downloadu-boot-socfpga-a3c6496bb2e19e7ae8618ae70ee13aecebfaaf88.tar.gz
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/kwboot.c')
-rw-r--r--tools/kwboot.c2
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++];