Skip to content

qdl: fix list/ramdump subcommands ignored when flags precede them#217

Open
mukeshojha-linux wants to merge 1 commit intolinux-msm:masterfrom
mukeshojha-linux:qdl-fix-list-ramdump
Open

qdl: fix list/ramdump subcommands ignored when flags precede them#217
mukeshojha-linux wants to merge 1 commit intolinux-msm:masterfrom
mukeshojha-linux:qdl-fix-list-ramdump

Conversation

@mukeshojha-linux
Copy link
Copy Markdown
Contributor

The list and ramdump subcommand checks in main() were done before any option parsing, so flags like --debug placed before the subcommand (e.g. qdl --debug list) would cause main() to miss the subcommand and fall through to qdl_flash(), resulting in an error.

Fix by scanning argv for the subcommand while skipping over any leading option flags.

The list and ramdump subcommand checks in main() were done before
any option parsing, so flags like --debug placed before the subcommand
(e.g. qdl --debug list) would cause main() to miss the subcommand
and fall through to qdl_flash(), resulting in an error.

Fix by scanning argv for the subcommand while skipping over any
leading option flags.

Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant