diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-15 04:57:12 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-17 11:38:06 -0800 |
commit | 7bf1a86e473a12882bf6f71cb4d0d416394b69d4 (patch) | |
tree | 2c9c1d2138df704ac551cdafe105dbb68b8f23b8 /src/target/arm966e.c | |
parent | 5b9899d6ea1e0cf763465c64c700f20eddd893f9 (diff) | |
download | riscv-openocd-7bf1a86e473a12882bf6f71cb4d0d416394b69d4.zip riscv-openocd-7bf1a86e473a12882bf6f71cb4d0d416394b69d4.tar.gz riscv-openocd-7bf1a86e473a12882bf6f71cb4d0d416394b69d4.tar.bz2 |
command_handler: change to 'argc' to CMD_ARGC
This patch converts all instances of 'argc' in COMMAND_HANDLER routines
to use CMD_ARGC.
Diffstat (limited to 'src/target/arm966e.c')
-rw-r--r-- | src/target/arm966e.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/arm966e.c b/src/target/arm966e.c index fc50acb..0c08a60 100644 --- a/src/target/arm966e.c +++ b/src/target/arm966e.c @@ -179,12 +179,12 @@ COMMAND_HANDLER(arm966e_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 address; COMMAND_PARSE_NUMBER(u32, args[0], address); - if (argc == 1) + if (CMD_ARGC == 1) { uint32_t value; if ((retval = arm966e_read_cp15(target, address, &value)) != ERROR_OK) @@ -202,7 +202,7 @@ COMMAND_HANDLER(arm966e_handle_cp15_command) command_print(cmd_ctx, "%" PRIi32 ": %8.8" PRIx32, address, value); } - else if (argc == 2) + else if (CMD_ARGC == 2) { uint32_t value; COMMAND_PARSE_NUMBER(u32, args[1], value); |