Linux USB
 help / color / mirror / Atom feed
* [RFC PATCH 1/2] usb: urb: show pipe information of warning message in usb_submit_urb()
@ 2023-03-03  9:28 Linyu Yuan
  2023-03-03  9:28 ` [RFC PATCH 2/2] usb: core: hub: avoid reset hub during probe Linyu Yuan
  2023-03-03 10:28 ` [RFC PATCH 1/2] usb: urb: show pipe information of warning message in usb_submit_urb() Greg Kroah-Hartman
  0 siblings, 2 replies; 9+ messages in thread
From: Linyu Yuan @ 2023-03-03  9:28 UTC (permalink / raw)
  To: Mathias Nyman, Greg Kroah-Hartman, Alan Stern
  Cc: linux-usb, Jack Pham, Wesley Cheng, Pratham Pratap, Linyu Yuan

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 --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;
 	}
 
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-03-09  2:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-03  9:28 [RFC PATCH 1/2] usb: urb: show pipe information of warning message in usb_submit_urb() Linyu Yuan
2023-03-03  9:28 ` [RFC PATCH 2/2] usb: core: hub: avoid reset hub during probe Linyu Yuan
2023-03-03 10:29   ` Greg Kroah-Hartman
2023-03-03 16:05   ` Alan Stern
2023-03-08  5:54     ` Linyu Yuan
2023-03-08 16:04       ` Alan Stern
2023-03-09  2:18         ` Linyu Yuan
2023-03-09  2:49           ` Alan Stern
2023-03-03 10:28 ` [RFC PATCH 1/2] usb: urb: show pipe information of warning message in usb_submit_urb() Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox