Skip to content

Commit 6df4750

Browse files
oneukumgregkh
authored andcommitted
USB: core: ratelimit cabling message
If a cable is bad, it stays bad. There is no need to flood the log with messages about it. So go for a ratelimited version. Signed-off-by: Oliver Neukum <oneukum@suse.com> Link: https://patch.msgid.link/20260605090110.1514785-1-oneukum@suse.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 0bfeec2 commit 6df4750

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/usb/core/hub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3148,7 +3148,7 @@ static int hub_port_reset(struct usb_hub *hub, int port1,
31483148
delay = HUB_LONG_RESET_TIME;
31493149
}
31503150

3151-
dev_err(&port_dev->dev, "Cannot enable. Maybe the USB cable is bad?\n");
3151+
dev_err_ratelimited(&port_dev->dev, "Cannot enable. Maybe the USB cable is bad?\n");
31523152

31533153
done:
31543154
if (status == 0) {

0 commit comments

Comments
 (0)