Skip to content

Commit be4d652

Browse files
authored
Merge pull request #2346 from IngHK/LogLineEnds
made log line end consistent \r\n
2 parents 9c9ebb3 + 7e1fe2f commit be4d652

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
@@ -396,7 +396,7 @@ static max3421_ep_t * find_next_pending_ep(max3421_ep_t * cur_ep) {
396396
for (size_t i = idx + 1; i < CFG_TUH_MAX3421_ENDPOINT_TOTAL; i++) {
397397
max3421_ep_t* ep = &_hcd_data.ep[i];
398398
if (ep->xfer_pending && ep->packet_size) {
399-
// TU_LOG3("next pending i = %u\n", i);
399+
// TU_LOG3("next pending i = %u\r\n", i);
400400
return ep;
401401
}
402402
}
@@ -405,7 +405,7 @@ static max3421_ep_t * find_next_pending_ep(max3421_ep_t * cur_ep) {
405405
for (size_t i = 0; i <= idx; i++) {
406406
max3421_ep_t* ep = &_hcd_data.ep[i];
407407
if (ep->xfer_pending && ep->packet_size) {
408-
// TU_LOG3("next pending i = %u\n", i);
408+
// TU_LOG3("next pending i = %u\r\n", i);
409409
return ep;
410410
}
411411
}
@@ -726,9 +726,9 @@ static void handle_connect_irq(uint8_t rhport, bool in_isr) {
726726
// However, since we are always in full speed mode, we can just check J-state
727727
if (jk == HRSL_KSTATUS) {
728728
new_mode |= MODE_LOWSPEED;
729-
TU_LOG3("Low speed\n");
729+
TU_LOG3("Low speed\r\n");
730730
}else {
731-
TU_LOG3("Full speed\n");
731+
TU_LOG3("Full speed\r\n");
732732
}
733733
new_mode |= MODE_SOFKAENAB;
734734
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)