Skip to content

Commit 81d8a70

Browse files
committed
dcw_otg: Make trimming messages less noisy
1 parent ff3ae8d commit 81d8a70

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/usb/host/dwc_otg/dwc_otg_hcd_intr.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,8 @@ static int update_urb_state_xfer_comp(dwc_hc_t * hc,
738738
&short_read);
739739

740740
if (urb->actual_length + xfer_length > urb->length) {
741-
DWC_WARN("%s(): trimming xfer length\n", __func__);
741+
printk_once(KERN_DEBUG "dwc_otg: DEVICE:%03d : %s:%d:trimming xfer length\n",
742+
hc->dev_addr, __func__, __LINE__);
742743
xfer_length = urb->length - urb->actual_length;
743744
}
744745

@@ -1430,7 +1431,8 @@ static void update_urb_state_xfer_intr(dwc_hc_t * hc,
14301431
halt_status, NULL);
14311432

14321433
if (urb->actual_length + bytes_transferred > urb->length) {
1433-
DWC_WARN("%s(): trimming xfer length\n", __func__);
1434+
printk_once(KERN_DEBUG "dwc_otg: DEVICE:%03d : %s:%d:trimming xfer length\n",
1435+
hc->dev_addr, __func__, __LINE__);
14341436
bytes_transferred = urb->length - urb->actual_length;
14351437
}
14361438

0 commit comments

Comments
 (0)