From: OpenOCD-Gerrit <ope...@us...> - 2022-10-08 07:50:40
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 1d77fc74e11d8eed87111216dd01e94d900c00c0 (commit) from 48507e3b1044eee218a6ba207269d33e51ae6040 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 1d77fc74e11d8eed87111216dd01e94d900c00c0 Author: Tomas Vanek <va...@fb...> Date: Wed Sep 21 09:47:05 2022 +0200 jtag/drivers/cmsis_dap: add LOG_DEBUG_IO to cmsis_dap_metacmd_targetsel Make write to DP_TARGETSEL is logged the similar way as other DP register read/writes. While on it fix checkpatch message 'Concatenated strings should use spaces between elements' Change-Id: I98f724c984e8c4610cc461340f4c4a7cc9627ed9 Signed-off-by: Tomas Vanek <va...@fb...> Reviewed-on: https://review.openocd.org/c/openocd/+/7219 Reviewed-by: Antonio Borneo <bor...@gm...> Reviewed-by: Jonathan Bell <jon...@ra...> Tested-by: jenkins diff --git a/src/jtag/drivers/cmsis_dap.c b/src/jtag/drivers/cmsis_dap.c index e708d5252..2f5f9c907 100644 --- a/src/jtag/drivers/cmsis_dap.c +++ b/src/jtag/drivers/cmsis_dap.c @@ -573,6 +573,8 @@ static int cmsis_dap_metacmd_targetsel(uint32_t instance_id) The purpose of this operation is to select the target corresponding to the instance_id that is written */ + LOG_DEBUG_IO("DP write reg TARGETSEL %" PRIx32, instance_id); + size_t idx = 0; command[idx++] = CMD_DAP_SWD_SEQUENCE; command[idx++] = 3; /* sequence count */ @@ -783,7 +785,7 @@ static void cmsis_dap_swd_write_from_queue(struct cmsis_dap *dap) uint8_t cmd = transfer->cmd; uint32_t data = transfer->data; - LOG_DEBUG_IO("%s %s reg %x %"PRIx32, + LOG_DEBUG_IO("%s %s reg %x %" PRIx32, cmd & SWD_CMD_APNDP ? "AP" : "DP", cmd & SWD_CMD_RNW ? "read" : "write", (cmd & SWD_CMD_A32) >> 1, data); @@ -889,7 +891,7 @@ static void cmsis_dap_swd_read_process(struct cmsis_dap *dap, int timeout_ms) uint32_t tmp = data; idx += 4; - LOG_DEBUG_IO("Read result: %"PRIx32, data); + LOG_DEBUG_IO("Read result: %" PRIx32, data); /* Imitate posted AP reads */ if ((transfer->cmd & SWD_CMD_APNDP) || ----------------------------------------------------------------------- Summary of changes: src/jtag/drivers/cmsis_dap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) hooks/post-receive -- Main OpenOCD repository |