openocd/src/jtag
Antonio Borneo d493b53e8c jtag/aice: avoid abusing of int32_t type
In several cases the 'int' status value returned by libusb and by
aice internal functions is taken in a variable of type 'int32_t',
requiring an implicit (but trivial) cast.
This makes compulsory using 'PRId32' in the format strings that
print such 'int32_t' result and requires an additional implicit
conversion to return the 'int32_t' as 'int'.

Replace to type 'int' all the occurrences of 'int32_t result' and
fix accordingly the format strings.

Plus, all the size of aice commands are stored as int32_t const
variables with uppercase name, violating the coding style, and are
then passed as 'int' parameter to the read/write functions.

Replace the variables with C macros carrying an 'int' value.

While there, replace also a 'uint32_t' loop index with 'unsigned'
and fix the format string in the loop.

Change-Id: Ic57d58770f1af95f003b5a02fbcb7c926ec06fd1
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5814
Tested-by: jenkins
2020-09-05 17:12:19 +01:00
..
aice jtag/aice: avoid abusing of int32_t type 2020-09-05 17:12:19 +01:00
drivers Fix debug prints when loading to flash 2020-09-05 16:48:08 +01:00
hla hla_transport: split command registration per transport 2020-09-05 17:10:38 +01:00
minidriver Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
minidummy coding style: prototype of functions with no parameters 2020-05-09 14:39:59 +01:00
zy1000 coding style: add arguments to function prototypes 2020-07-08 22:08:19 +01:00
adapter.c jtag: adapter: rework adapter related commands 2020-01-29 05:33:39 +00:00
commands.c Fix debug prints when loading to flash 2020-09-05 16:48:08 +01:00
commands.h jtag: make cmd_queue_scan_field_clone public 2018-10-16 11:58:17 +01:00
core.c Fix debug prints when loading to flash 2020-09-05 16:48:08 +01:00
driver.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
interface.c coding style: prototype of functions with no parameters 2020-05-09 14:39:59 +01:00
interface.h jtag: fix minor typos 2020-07-26 20:14:37 +01:00
interfaces.c jtag/drivers: add linuxgpiod driver 2020-07-14 00:38:48 +01:00
interfaces.h jtag: remove unused function adapter_driver_modules_load() 2020-05-02 15:41:21 +01:00
jtag.h jtag: fix minor typos 2020-07-26 20:14:37 +01:00
Makefile.am swim: abstract the transport in stm8 target 2020-05-24 21:29:42 +01:00
minidriver.h jtag: fix minor typos 2020-07-26 20:14:37 +01:00
startup.tcl hla_transport: split command registration per transport 2020-09-05 17:10:38 +01:00
swd.h swd: get rid of jtag queue to assert/deassert srst 2020-01-14 11:15:12 +00:00
swim.c swim: add new transport 2020-05-24 21:32:05 +01:00
swim.h swim: fix adapter speed handling 2020-05-24 21:31:21 +01:00
tcl.c Fix debug prints when loading to flash 2020-09-05 16:48:08 +01:00
tcl.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00