From facd2683df2e2b322aadd11c42b2cc71e62af199 Mon Sep 17 00:00:00 2001 From: wlf Date: Wed, 7 May 2014 12:37:39 +0800 Subject: [PATCH] USB: Fix usb debug log. --- drivers/usb/dwc_otg_310/dwc_otg_hcd_linux.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc_otg_310/dwc_otg_hcd_linux.c b/drivers/usb/dwc_otg_310/dwc_otg_hcd_linux.c index a1aab955819f..aca9f86d7cd2 100755 --- a/drivers/usb/dwc_otg_310/dwc_otg_hcd_linux.c +++ b/drivers/usb/dwc_otg_310/dwc_otg_hcd_linux.c @@ -1025,10 +1025,12 @@ static int urb_enqueue(struct usb_hcd *hcd, usb_maxpacket(urb->dev, urb->pipe, !(usb_pipein(urb->pipe)))); +#ifdef DEBUG if((uint32_t)urb->transfer_buffer & 3){ DWC_PRINTF("%s urb->transfer_buffer address not align to 4-byte 0x%x\n", - __func__, (uint32_t)urb->transfer_buffer); + __func__, (uint32_t)urb->transfer_buffer); } +#endif buf = urb->transfer_buffer; -- 2.34.1