Skip to content

Commit

Permalink
esp_usb_jtag: io logs printed with LOG_DEBUG_IO
Browse files Browse the repository at this point in the history
  • Loading branch information
erhankur committed May 11, 2021
1 parent 6fd0846 commit 618443d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/jtag/drivers/esp_usb_jtag.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ static int esp_usb_jtag_recv_buf(void)
priv->cur_in_buf_wr++;
if (priv->cur_in_buf_wr == IN_BUF_CT)
priv->cur_in_buf_wr= 0;
LOG_DEBUG("esp_usb_jtag: In ep: received %d bytes; %d bytes (%d bits) left.", (int)n,
LOG_DEBUG_IO("esp_usb_jtag: In ep: received %d bytes; %d bytes (%d bits) left.", (int)n,
(priv->pending_in_bits+7)/8, priv->pending_in_bits);
return ERROR_OK;
}
Expand All @@ -333,7 +333,7 @@ static int esp_usb_jtag_send_buf(void)
((char *)priv->out_buf),
ct,
5000 /*ms*/);
LOG_DEBUG("esp_usb_jtag: sent %d bytes.", (int)n);
LOG_DEBUG_IO("esp_usb_jtag: sent %d bytes.", (int)n);
if (priv->logfile)
log_cmds(priv->out_buf, ct, n);
if (n != ct) {
Expand Down Expand Up @@ -426,7 +426,7 @@ static int esp_usb_jtag_flush(void)
/*If not, pad with an extra FLUSH */
esp_usb_jtag_command_add_raw(CMD_FLUSH);
}
LOG_DEBUG("esp_usb_jtag: Flush!");
LOG_DEBUG_IO("esp_usb_jtag: Flush!");
/*Send off the buffer. */
int r= esp_usb_jtag_send_buf();
if (r != ERROR_OK)
Expand Down

0 comments on commit 618443d

Please sign in to comment.