summaryrefslogtreecommitdiff
path: root/src/jtag/tcl.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/jtag/tcl.c
parent1df5cc18f51366b823bccdaec4ffa1ee3fac2447 (diff)
downloadopenocd_libswd-5b6df55a1e5e4c0f531bc336691bc7c9a6a0df87.tar.gz
openocd_libswd-5b6df55a1e5e4c0f531bc336691bc7c9a6a0df87.tar.bz2
openocd_libswd-5b6df55a1e5e4c0f531bc336691bc7c9a6a0df87.tar.xz
openocd_libswd-5b6df55a1e5e4c0f531bc336691bc7c9a6a0df87.zip
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/jtag/tcl.c')
-rw-r--r--src/jtag/tcl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/tcl.c b/src/jtag/tcl.c
index 653d3a7e..4da8838d 100644
--- a/src/jtag/tcl.c
+++ b/src/jtag/tcl.c
@@ -658,7 +658,7 @@ COMMAND_HANDLER(handle_interface_command)
* didn't match one of the compiled-in interfaces
*/
LOG_ERROR("The specified JTAG interface was not found (%s)", args[0]);
- handle_interface_list_command(cmd_ctx, cmd, args, argc);
+ CALL_COMMAND_HANDLER(handle_interface_list_command);
return ERROR_JTAG_INVALID_INTERFACE;
}