forked from auracaster/openocd
command_handler: change to 'argc' to CMD_ARGC
This patch converts all instances of 'argc' in COMMAND_HANDLER routines to use CMD_ARGC.
This commit is contained in:
@@ -429,12 +429,12 @@ COMMAND_HANDLER(arm720t_handle_cp15_command)
|
||||
}
|
||||
|
||||
/* one or more argument, access a single register (write if second argument is given */
|
||||
if (argc >= 1)
|
||||
if (CMD_ARGC >= 1)
|
||||
{
|
||||
uint32_t opcode;
|
||||
COMMAND_PARSE_NUMBER(u32, args[0], opcode);
|
||||
|
||||
if (argc == 1)
|
||||
if (CMD_ARGC == 1)
|
||||
{
|
||||
uint32_t value;
|
||||
if ((retval = arm720t_read_cp15(target, opcode, &value)) != ERROR_OK)
|
||||
@@ -450,7 +450,7 @@ COMMAND_HANDLER(arm720t_handle_cp15_command)
|
||||
|
||||
command_print(cmd_ctx, "0x%8.8" PRIx32 ": 0x%8.8" PRIx32 "", opcode, value);
|
||||
}
|
||||
else if (argc == 2)
|
||||
else if (CMD_ARGC == 2)
|
||||
{
|
||||
uint32_t value;
|
||||
COMMAND_PARSE_NUMBER(u32, args[1], value);
|
||||
|
||||
Reference in New Issue
Block a user