command_handler: change 'cmd_ctx' to CMD_CTX
Convert all command handler 'cmd_ctx' parameter usage with CMD_CTX.
This commit is contained in:
@@ -1134,7 +1134,7 @@ COMMAND_HANDLER(stellaris_handle_mass_erase_command)
|
||||
|
||||
if (CMD_ARGC < 1)
|
||||
{
|
||||
command_print(cmd_ctx, "stellaris mass_erase <bank>");
|
||||
command_print(CMD_CTX, "stellaris mass_erase <bank>");
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
@@ -1151,11 +1151,11 @@ COMMAND_HANDLER(stellaris_handle_mass_erase_command)
|
||||
bank->sectors[i].is_erased = 1;
|
||||
}
|
||||
|
||||
command_print(cmd_ctx, "stellaris mass erase complete");
|
||||
command_print(CMD_CTX, "stellaris mass erase complete");
|
||||
}
|
||||
else
|
||||
{
|
||||
command_print(cmd_ctx, "stellaris mass erase failed");
|
||||
command_print(CMD_CTX, "stellaris mass erase failed");
|
||||
}
|
||||
|
||||
return ERROR_OK;
|
||||
|
||||
Reference in New Issue
Block a user