Skip to content

Commit

Permalink
jtag/drivers/cmsis-dap: Return error in 'backend' command
Browse files Browse the repository at this point in the history
Change-Id: Ib9bf7ab50cbe193e9e726efb3cb58e53723a6dd1
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/7964
Reviewed-by: Tomas Vanek <[email protected]>
Tested-by: jenkins
Reviewed-by: Antonio Borneo <[email protected]>
  • Loading branch information
zapb-0 authored and borneoa committed Nov 18, 2023
1 parent b25e532 commit ba79d50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/jtag/drivers/cmsis_dap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2148,10 +2148,11 @@ COMMAND_HANDLER(cmsis_dap_handle_backend_command)
}
}

LOG_ERROR("invalid backend argument to cmsis-dap backend <backend>");
command_print(CMD, "invalid backend argument to cmsis-dap backend <backend>");
return ERROR_COMMAND_ARGUMENT_INVALID;
}
} else {
LOG_ERROR("expected exactly one argument to cmsis-dap backend <backend>");
return ERROR_COMMAND_SYNTAX_ERROR;
}

return ERROR_OK;
Expand Down

0 comments on commit ba79d50

Please sign in to comment.