Skip to content

Commit 7e1fe2f

Browse files
author
IngHK
committed
made log line end consistent \r\n
1 parent a973887 commit 7e1fe2f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

examples/device/cdc_uac2/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ int main(void)
6060
led_blinking_task();
6161

6262
#if (CFG_TUSB_MCU == OPT_MCU_RP2040)
63-
// printf("Hello, world!\n");
63+
// printf("Hello, world!\r\n");
6464
#endif
6565
}
6666

src/portable/analog/max3421/hcd_max3421.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ static max3421_ep_t * find_next_pending_ep(max3421_ep_t * cur_ep) {
382382
for (size_t i = idx + 1; i < CFG_TUH_MAX3421_ENDPOINT_TOTAL; i++) {
383383
max3421_ep_t* ep = &_hcd_data.ep[i];
384384
if (ep->xfer_pending && ep->packet_size) {
385-
// TU_LOG3("next pending i = %u\n", i);
385+
// TU_LOG3("next pending i = %u\r\n", i);
386386
return ep;
387387
}
388388
}
@@ -391,7 +391,7 @@ static max3421_ep_t * find_next_pending_ep(max3421_ep_t * cur_ep) {
391391
for (size_t i = 0; i <= idx; i++) {
392392
max3421_ep_t* ep = &_hcd_data.ep[i];
393393
if (ep->xfer_pending && ep->packet_size) {
394-
// TU_LOG3("next pending i = %u\n", i);
394+
// TU_LOG3("next pending i = %u\r\n", i);
395395
return ep;
396396
}
397397
}
@@ -712,9 +712,9 @@ static void handle_connect_irq(uint8_t rhport, bool in_isr) {
712712
// However, since we are always in full speed mode, we can just check J-state
713713
if (jk == HRSL_KSTATUS) {
714714
new_mode |= MODE_LOWSPEED;
715-
TU_LOG3("Low speed\n");
715+
TU_LOG3("Low speed\r\n");
716716
}else {
717-
TU_LOG3("Full speed\n");
717+
TU_LOG3("Full speed\r\n");
718718
}
719719
new_mode |= MODE_SOFKAENAB;
720720
mode_write(rhport, new_mode, in_isr);

src/portable/ehci/ehci.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ void qhd_xfer_complete_isr(ehci_qhd_t * qhd) {
581581
// clear halted bit if not caused by STALL to allow more transfer
582582
xfer_result = XFER_RESULT_FAILED;
583583
qtd_overlay->halted = false;
584-
TU_LOG3(" QHD xfer err count: %d\n", qtd_overlay->err_count);
584+
TU_LOG3(" QHD xfer err count: %d\r\n", qtd_overlay->err_count);
585585
// TU_BREAKPOINT(); // TODO skip unplugged device
586586
}else {
587587
// 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) {
664664
if (int_status & EHCI_INT_MASK_HC_HALTED) {
665665
// something seriously wrong, maybe forget to flush/invalidate cache
666666
TU_BREAKPOINT();
667-
TU_LOG1(" HC halted\n");
667+
TU_LOG1(" HC halted\r\n");
668668
return;
669669
}
670670

src/portable/mentor/musb/dcd_musb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ static inline unsigned free_block_size(free_block_t const *blk)
158158
#if 0
159159
static inline void print_block_list(free_block_t const *blk, unsigned num)
160160
{
161-
TU_LOG1("*************\n");
161+
TU_LOG1("*************\r\n");
162162
for (unsigned i = 0; i < num; ++i) {
163-
TU_LOG1(" Blk%u %u %u\n", i, blk->beg, blk->end);
163+
TU_LOG1(" Blk%u %u %u\r\n", i, blk->beg, blk->end);
164164
++blk;
165165
}
166166
}

0 commit comments

Comments
 (0)