jtag/drivers/kitprog: Enable LOG_DEBUG_IO

Change-Id: Ic01b0acf01e18bcb2bf98c101c7b5888cdc10186
Signed-off-by: Forest Crossman <cyrozap@gmail.com>
Reviewed-on: http://openocd.zylin.com/4323
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
compliance_dev
Forest Crossman 2018-01-05 22:11:38 -06:00 committed by Tomas Vanek
parent 3cba4bd4cb
commit 6f5e9941df
1 changed files with 3 additions and 7 deletions

View File

@ -681,7 +681,7 @@ static int kitprog_swd_run_queue(void)
uint8_t *buffer = kitprog_handle->packet_buffer; uint8_t *buffer = kitprog_handle->packet_buffer;
do { do {
LOG_DEBUG("Executing %d queued transactions", pending_transfer_count); LOG_DEBUG_IO("Executing %d queued transactions", pending_transfer_count);
if (queued_retval != ERROR_OK) { if (queued_retval != ERROR_OK) {
LOG_DEBUG("Skipping due to previous errors: %d", queued_retval); LOG_DEBUG("Skipping due to previous errors: %d", queued_retval);
@ -714,12 +714,10 @@ static int kitprog_swd_run_queue(void)
data &= ~CORUNDETECT; data &= ~CORUNDETECT;
} }
#if 0 LOG_DEBUG_IO("%s %s reg %x %"PRIx32,
LOG_DEBUG("%s %s reg %x %"PRIx32,
cmd & SWD_CMD_APnDP ? "AP" : "DP", cmd & SWD_CMD_APnDP ? "AP" : "DP",
cmd & SWD_CMD_RnW ? "read" : "write", cmd & SWD_CMD_RnW ? "read" : "write",
(cmd & SWD_CMD_A32) >> 1, data); (cmd & SWD_CMD_A32) >> 1, data);
#endif
buffer[write_count++] = (cmd | SWD_CMD_START | SWD_CMD_PARK) & ~SWD_CMD_STOP; buffer[write_count++] = (cmd | SWD_CMD_START | SWD_CMD_PARK) & ~SWD_CMD_STOP;
read_count++; read_count++;
@ -764,9 +762,7 @@ static int kitprog_swd_run_queue(void)
if (pending_transfers[i].cmd & SWD_CMD_RnW) { if (pending_transfers[i].cmd & SWD_CMD_RnW) {
uint32_t data = le_to_h_u32(&buffer[read_index]); uint32_t data = le_to_h_u32(&buffer[read_index]);
#if 0 LOG_DEBUG_IO("Read result: %"PRIx32, data);
LOG_DEBUG("Read result: %"PRIx32, data);
#endif
if (pending_transfers[i].buffer) if (pending_transfers[i].buffer)
*(uint32_t *)pending_transfers[i].buffer = data; *(uint32_t *)pending_transfers[i].buffer = data;