diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2020-08-18 18:55:25 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2020-09-05 17:12:25 +0100 |
commit | 2f62883161fe4cdc32826a7bc6826ad82516233e (patch) | |
tree | 9dbe347aaec1a953cbd8a29bfb750fa8976de447 /src/jtag/drivers/amt_jtagaccel.c | |
parent | d493b53e8c43da0904c03617830b8efa2e136d3d (diff) | |
download | riscv-openocd-2f62883161fe4cdc32826a7bc6826ad82516233e.zip riscv-openocd-2f62883161fe4cdc32826a7bc6826ad82516233e.tar.gz riscv-openocd-2f62883161fe4cdc32826a7bc6826ad82516233e.tar.bz2 |
jtag: use proper format with uint32_t
Modify the format strings to properly handle uint32_t data types.
Change the prototype of detect_swo_freq_and_prescaler() in
'jlink.c' to avoid an implicit cast in the caller function.
Change the type of the variable retlen in some functions in
'usb_blaster.c' to properly pass their pointer to the local read
and write functions.
Use the proper parser COMMAND_PARSE_NUMBER(u32, ...).
Change-Id: I5227dbce04ee59881f173724db90790b7b9cc7af
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5815
Tested-by: jenkins
Diffstat (limited to 'src/jtag/drivers/amt_jtagaccel.c')
-rw-r--r-- | src/jtag/drivers/amt_jtagaccel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/drivers/amt_jtagaccel.c b/src/jtag/drivers/amt_jtagaccel.c index f5918a0..81721cb 100644 --- a/src/jtag/drivers/amt_jtagaccel.c +++ b/src/jtag/drivers/amt_jtagaccel.c @@ -374,7 +374,7 @@ static int amt_jtagaccel_execute_queue(void) free(buffer); break; case JTAG_SLEEP: - LOG_DEBUG_IO("sleep %" PRIi32, cmd->cmd.sleep->us); + LOG_DEBUG_IO("sleep %" PRIu32, cmd->cmd.sleep->us); jtag_sleep(cmd->cmd.sleep->us); break; default: |