summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngHK <[email protected]>2023-11-24 22:02:58 +0100
committerIngHK <[email protected]>2023-11-24 22:02:58 +0100
commit7e1fe2ff83e1089a1e75e4fdc03af4b0aa6048ea (patch)
tree8f5a3aa67b5067b83172c277e559cc1873c26900
parenta973887399e5bb33039ddddaf43136b63fe28776 (diff)
made log line end consistent \r\n
-rw-r--r--examples/device/cdc_uac2/src/main.c2
-rw-r--r--src/portable/analog/max3421/hcd_max3421.c8
-rw-r--r--src/portable/ehci/ehci.c4
-rw-r--r--src/portable/mentor/musb/dcd_musb.c4
4 files changed, 9 insertions, 9 deletions
diff --git a/examples/device/cdc_uac2/src/main.c b/examples/device/cdc_uac2/src/main.c
index 7afa96c1a..25b2cd9a5 100644
--- a/examples/device/cdc_uac2/src/main.c
+++ b/examples/device/cdc_uac2/src/main.c
@@ -60,7 +60,7 @@ int main(void)
led_blinking_task();
#if (CFG_TUSB_MCU == OPT_MCU_RP2040)
- // printf("Hello, world!\n");
+ // printf("Hello, world!\r\n");
#endif
}
diff --git a/src/portable/analog/max3421/hcd_max3421.c b/src/portable/analog/max3421/hcd_max3421.c
index 65f87f7c6..d7ce5a92f 100644
--- a/src/portable/analog/max3421/hcd_max3421.c
+++ b/src/portable/analog/max3421/hcd_max3421.c
@@ -382,7 +382,7 @@ static max3421_ep_t * find_next_pending_ep(max3421_ep_t * cur_ep) {
for (size_t i = idx + 1; i < CFG_TUH_MAX3421_ENDPOINT_TOTAL; i++) {
max3421_ep_t* ep = &_hcd_data.ep[i];
if (ep->xfer_pending && ep->packet_size) {
-// TU_LOG3("next pending i = %u\n", i);
+// TU_LOG3("next pending i = %u\r\n", i);
return ep;
}
}
@@ -391,7 +391,7 @@ static max3421_ep_t * find_next_pending_ep(max3421_ep_t * cur_ep) {
for (size_t i = 0; i <= idx; i++) {
max3421_ep_t* ep = &_hcd_data.ep[i];
if (ep->xfer_pending && ep->packet_size) {
-// TU_LOG3("next pending i = %u\n", i);
+// TU_LOG3("next pending i = %u\r\n", i);
return ep;
}
}
@@ -712,9 +712,9 @@ static void handle_connect_irq(uint8_t rhport, bool in_isr) {
// However, since we are always in full speed mode, we can just check J-state
if (jk == HRSL_KSTATUS) {
new_mode |= MODE_LOWSPEED;
- TU_LOG3("Low speed\n");
+ TU_LOG3("Low speed\r\n");
}else {
- TU_LOG3("Full speed\n");
+ TU_LOG3("Full speed\r\n");
}
new_mode |= MODE_SOFKAENAB;
mode_write(rhport, new_mode, in_isr);
diff --git a/src/portable/ehci/ehci.c b/src/portable/ehci/ehci.c
index 572b9826c..e145cbb1b 100644
--- a/src/portable/ehci/ehci.c
+++ b/src/portable/ehci/ehci.c
@@ -581,7 +581,7 @@ void qhd_xfer_complete_isr(ehci_qhd_t * qhd) {
// clear halted bit if not caused by STALL to allow more transfer
xfer_result = XFER_RESULT_FAILED;
qtd_overlay->halted = false;
- TU_LOG3(" QHD xfer err count: %d\n", qtd_overlay->err_count);
+ TU_LOG3(" QHD xfer err count: %d\r\n", qtd_overlay->err_count);
// TU_BREAKPOINT(); // TODO skip unplugged device
}else {
// no error bits are set, endpoint is halted due to STALL
@@ -664,7 +664,7 @@ void hcd_int_handler(uint8_t rhport, bool in_isr) {
if (int_status & EHCI_INT_MASK_HC_HALTED) {
// something seriously wrong, maybe forget to flush/invalidate cache
TU_BREAKPOINT();
- TU_LOG1(" HC halted\n");
+ TU_LOG1(" HC halted\r\n");
return;
}
diff --git a/src/portable/mentor/musb/dcd_musb.c b/src/portable/mentor/musb/dcd_musb.c
index 3c0114e41..a817c5d6e 100644
--- a/src/portable/mentor/musb/dcd_musb.c
+++ b/src/portable/mentor/musb/dcd_musb.c
@@ -158,9 +158,9 @@ static inline unsigned free_block_size(free_block_t const *blk)
#if 0
static inline void print_block_list(free_block_t const *blk, unsigned num)
{
- TU_LOG1("*************\n");
+ TU_LOG1("*************\r\n");
for (unsigned i = 0; i < num; ++i) {
- TU_LOG1(" Blk%u %u %u\n", i, blk->beg, blk->end);
+ TU_LOG1(" Blk%u %u %u\r\n", i, blk->beg, blk->end);
++blk;
}
}