aboutsummaryrefslogtreecommitdiff
path: root/src/target/etm.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-10 22:23:07 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 10:51:46 -0800
commit5b6df55a1e5e4c0f531bc336691bc7c9a6a0df87 (patch)
tree50cd2c3812b1b585301e66fa4cd1fcc84e357539 /src/target/etm.c
parent1df5cc18f51366b823bccdaec4ffa1ee3fac2447 (diff)
downloadriscv-openocd-5b6df55a1e5e4c0f531bc336691bc7c9a6a0df87.zip
riscv-openocd-5b6df55a1e5e4c0f531bc336691bc7c9a6a0df87.tar.gz
riscv-openocd-5b6df55a1e5e4c0f531bc336691bc7c9a6a0df87.tar.bz2
use CALL_COMMAND_HANDLER instead of direct calls
By using CALL_COMMAND_HANDLER, parameters can be reordered, added, or even removed in inherited signatures, without requiring revisiting all of the various call sites.
Diffstat (limited to 'src/target/etm.c')
-rw-r--r--src/target/etm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/etm.c b/src/target/etm.c
index df02904..a4ff6c5 100644
--- a/src/target/etm.c
+++ b/src/target/etm.c
@@ -1271,7 +1271,7 @@ COMMAND_HANDLER(handle_etm_tracemode_command)
case 0:
break;
case 4:
- handle_etm_tracemode_command_update(cmd_ctx, cmd, args, argc, &tracemode);
+ CALL_COMMAND_HANDLER(handle_etm_tracemode_command_update, &tracemode);
break;
default:
command_print(cmd_ctx, "usage: configure trace mode "