diff mbox series

[RFC,1/2] usb: urb: show pipe information of warning message in usb_submit_urb()

Message ID 1677835718-7405-1-git-send-email-quic_linyyuan@quicinc.com
State New
Headers show
Series [RFC,1/2] usb: urb: show pipe information of warning message in usb_submit_urb() | expand

Commit Message

Linyu Yuan March 3, 2023, 9:28 a.m. UTC
it will show the urb information for debugging.

Signed-off-by: Linyu Yuan <quic_linyyuan@quicinc.com>
---
 drivers/usb/core/urb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/usb/core/urb.c b/drivers/usb/core/urb.c
index 9f3c540..b258203 100644
--- a/drivers/usb/core/urb.c
+++ b/drivers/usb/core/urb.c
@@ -376,7 +376,7 @@  int usb_submit_urb(struct urb *urb, gfp_t mem_flags)
 	if (!urb || !urb->complete)
 		return -EINVAL;
 	if (urb->hcpriv) {
-		WARN_ONCE(1, "URB %pK submitted while active\n", urb);
+		WARN_ONCE(1, "URB %pK pipe %x submitted while active\n", urb, urb->pipe);
 		return -EBUSY;
 	}