Skip to contentSkip to conversation

usbip: Reduce CONNRESET message noise in dmesg from stub

PATCH Superseded Shuah Khan 4 participants 4 messages Jan 21 – Jan 22

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Shuah Khan

author maintainer
#0 lore raw

PATCH 1/1 usbip: Reduce CONNRESET message noise in dmesg from stub

stub_complete() prints informational messages for each urb unlink filling dmesg. Change the message to dev_dbg() similar to vhci reports the CONNRESET condition.

---
 drivers/usb/usbip/stub_tx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/usbip/stub_tx.c +1 -1
index 55919c3762ba..4cae452bfadb 100644
@@ -55,7 +55,7 @@ void stub_complete(struct urb *urb)
 			 "stopped by a call to usb_kill_urb() because of cleaning up a virtual connection\n");
 		return;
 	case -ECONNRESET:
-		dev_info(&urb->dev->dev,
+		dev_dbg(&urb->dev->dev,
 			 "unlinked by a call to usb_unlink_urb()\n");
 		break;
 	case -EPIPE:
Signature · 1 line
2.51.0
#1 lore raw
Quoted 16 lines · Shuah Khan

stub_complete() prints informational messages for each urb unlink filling dmesg. Change the message to dev_dbg() similar to vhci reports the CONNRESET condition.

---
 drivers/usb/usbip/stub_tx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/usbip/stub_tx.c +0 -0
index 55919c3762ba..4cae452bfadb 100644

drivers/usb/usbip/stub_tx.c void stub_complete(struct urb *urb) · line 59

Quoted 6 lines
drivers/usb/usbip/stub_tx.c +1 -1
@@ -55,7 +55,7 @@ void stub_complete(struct urb *urb)
 			 "stopped by a call to usb_kill_urb() because of cleaning up a virtual connection\n");
 		return;
 	case -ECONNRESET:
-		dev_info(&urb->dev->dev,
+		dev_dbg(&urb->dev->dev,
 			 "unlinked by a call to usb_unlink_urb()\n");

Please re-align this line for it to start under & again.

[...]

MBR, Sergey

maintainer
#2 lore raw
Quoted 13 lines · Sergey Shtylyov
Quoted 11 lines · Shuah Khan

stub_complete() prints informational messages for each urb unlink filling dmesg. Change the message to dev_dbg() similar to vhci reports the CONNRESET condition.

---
  drivers/usb/usbip/stub_tx.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines

drivers/usb/usbip/stub_tx.c void stub_complete(struct urb *urb) · line 59

Quoted 11 lines
drivers/usb/usbip/stub_tx.c +1 -1
index 55919c3762ba..4cae452bfadb 100644
@@ -55,7 +55,7 @@ void stub_complete(struct urb *urb)
  			 "stopped by a call to usb_kill_urb() because of cleaning up a virtual connection\n");
  		return;
  	case -ECONNRESET:
-		dev_info(&urb->dev->dev,
+		dev_dbg(&urb->dev->dev,
  			 "unlinked by a call to usb_unlink_urb()\n");

Please re-align this line for it to start under & again.

I missed that - thanks - will do that in v2.

thanks,
-- Shuah

#3 lore raw
In reply to Shuah Khan

Hi,

I need a couple of days to set up a new RPi hardware and compile kernel with USBIP debug set on.
I don't want to put my infrastructure on risk if anything goes wrong. But I’ll definitively send you the debug information required.

Regards
Ignacio

Quoted 29 lines · Shuah Khan

stub_complete() prints informational messages for each urb unlink filling dmesg. Change the message to dev_dbg() similar to vhci reports the CONNRESET condition.

---
drivers/usb/usbip/stub_tx.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/usbip/stub_tx.c +1 -1
index 55919c3762ba..4cae452bfadb 100644
@@ -55,7 +55,7 @@ void stub_complete(struct urb *urb)
 			 "stopped by a call to usb_kill_urb() because of cleaning up a virtual connection\n");
 		return;
 	case -ECONNRESET:
-		dev_info(&urb->dev->dev,
+		dev_dbg(&urb->dev->dev,
 			 "unlinked by a call to usb_unlink_urb()\n");
 		break;
 	case -EPIPE:
Signature · 1 line
2.51.0