openocd/src/jtag
Antonio Borneo 6cb5ba6f11 helper/command: change prototype of command_print/command_print_sameline
To prepare for handling TCL return values consistently, all calls
to command_print/command_print_sameline should switch to CMD as
first parameter.

Change prototype of command_print() and command_print_sameline()
to pass CMD instead of CMD_CTX.
Since the first parameter is currently not used, the change can be
done though scripts without manual coding.
This patch is created using the command:
	sed -i PATTERN $(find src/ doc/ -type f)
with all the following patters:
	's/\(command_print(cmd\)->ctx,/\1,/'
	's/\(command_print(CMD\)_CTX,/\1,/'
	's/\(command_print(struct command_\)context \*context,/\1invocation *cmd,/'
	's/\(command_print_sameline(cmd\)->ctx,/\1,/'
	's/\(command_print_sameline(CMD\)_CTX,/\1,/'
	's/\(command_print_sameline(struct command_\)context \*context,/\1invocation *cmd,/'

This change is inspired by http://openocd.zylin.com/1815 from Paul
Fertser but is now done through scripting.

Change-Id: I3386d8f96cdc477e7a2308dd18269de3bed04385
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/5081
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
2019-05-14 19:37:11 +01:00
..
aice helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
drivers helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
hla target/armv7m_trace: Fix typo in enum 2018-07-19 10:48:58 +01:00
minidriver Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
minidummy Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
zy1000 zy1000: fix compile error with gcc 8.1.1 2018-08-01 14:32:03 +01:00
adapter.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
commands.c jtag: make cmd_queue_scan_field_clone public 2018-10-16 11:58:17 +01:00
commands.h jtag: make cmd_queue_scan_field_clone public 2018-10-16 11:58:17 +01:00
core.c fix for sanitizer errors in left shifts 2019-04-10 16:37:51 +01:00
driver.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
interface.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
interface.h target/armv7m_trace: Fix typo in enum 2018-07-19 10:48:58 +01:00
interfaces.c jtag/drivers: Add support for TI XDS110 debug probe 2018-05-31 13:25:16 +01:00
interfaces.h Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
jtag.h target: restructure dap support 2018-03-30 09:58:21 +01:00
Makefile.am jtag: make cmd_queue_scan_field_clone public 2018-10-16 11:58:17 +01:00
minidriver.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
startup.tcl jtag/startup.tcl: fix regression with autoselecting JTAG 2015-04-14 12:35:39 +01:00
swd.h arm_adi_v5: fix and update sequences to spec IHI 0031E 2019-01-23 15:26:28 +00:00
tcl.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
tcl.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00