diff options
| author | IngHK <[email protected]> | 2024-02-08 12:00:44 +0100 |
|---|---|---|
| committer | IngHK <[email protected]> | 2024-02-08 12:00:44 +0100 |
| commit | 4d4e20b71efe8d9e1b5a141d84e058ff54801c67 (patch) | |
| tree | 1c980dc32813c898429d07a78720f4944bc714a3 /src | |
| parent | a0660027311738947a4227df63767fc81328dc86 (diff) | |
missing \r\n after TU_LOG_BUF => moved \r\n to tu_print_buf()
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/tusb_debug.h | 1 | ||||
| -rw-r--r-- | src/device/usbd.c | 1 | ||||
| -rw-r--r-- | src/host/usbh.c | 2 |
3 files changed, 1 insertions, 3 deletions
diff --git a/src/common/tusb_debug.h b/src/common/tusb_debug.h index 8db1606ae..2e9f1d9cd 100644 --- a/src/common/tusb_debug.h +++ b/src/common/tusb_debug.h @@ -60,6 +60,7 @@ void tu_print_mem(void const *buf, uint32_t count, uint8_t indent); static inline void tu_print_buf(uint8_t const* buf, uint32_t bufsize) { for(uint32_t i=0; i<bufsize; i++) tu_printf("%02X ", buf[i]); + tu_printf("\r\n"); } // Log with Level diff --git a/src/device/usbd.c b/src/device/usbd.c index 5c94ebcc5..be85d7769 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -500,7 +500,6 @@ void tud_task_ext(uint32_t timeout_ms, bool in_isr) case DCD_EVENT_SETUP_RECEIVED: TU_LOG_BUF(CFG_TUD_LOG_LEVEL, &event.setup_received, 8); - TU_LOG_USBD("\r\n"); // Mark as connected after receiving 1st setup packet. // But it is easier to set it every time instead of wasting time to check then set diff --git a/src/host/usbh.c b/src/host/usbh.c index 67668cebe..f56290a0c 100644 --- a/src/host/usbh.c +++ b/src/host/usbh.c @@ -589,7 +589,6 @@ bool tuh_control_xfer (tuh_xfer_t* xfer) { (xfer->setup->bmRequestType_bit.type == TUSB_REQ_TYPE_STANDARD && xfer->setup->bRequest <= TUSB_REQ_SYNCH_FRAME) ? tu_str_std_request[xfer->setup->bRequest] : "Class Request"); TU_LOG_BUF_USBH(xfer->setup, 8); - TU_LOG_USBH("\r\n"); if (xfer->complete_cb) { TU_ASSERT( hcd_setup_send(rhport, daddr, (uint8_t const*) &_ctrl_xfer.request) ); @@ -662,7 +661,6 @@ static bool usbh_control_xfer_cb (uint8_t dev_addr, uint8_t ep_addr, xfer_result if (XFER_RESULT_SUCCESS != result) { TU_LOG_USBH("[%u:%u] Control %s, xferred_bytes = %lu\r\n", rhport, dev_addr, result == XFER_RESULT_STALLED ? "STALLED" : "FAILED", xferred_bytes); TU_LOG_BUF_USBH(request, 8); - TU_LOG_USBH("\r\n"); // terminate transfer if any stage failed _xfer_complete(dev_addr, result); |
