Skip to content

Commit

Permalink
tools: kwboot: Fix usage of -D without -t
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Marek Behún <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
  • Loading branch information
pali authored and stroese committed Jan 31, 2022
1 parent 91fb095 commit a3c6496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/kwboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++];
Expand Down

0 comments on commit a3c6496

Please sign in to comment.