Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging/usbip: Fix vhci_hcd attach failure error message to be informative

When attach fails due to unsupported and/or invalid bus speed, the message
vhci_hcd prints out doesn't include any useful information as to what caused
the failure. Change the message to be informative and use usb_speed_string()
to get the right speed string from usb common.

Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Shuah Khan and committed by
Greg Kroah-Hartman
8360fb0d fdf2f40c

+2 -1
+2 -1
drivers/staging/usbip/vhci_sysfs.c
··· 149 149 case USB_SPEED_WIRELESS: 150 150 break; 151 151 default: 152 - pr_err("speed %d\n", speed); 152 + pr_err("Failed attach request for unsupported USB speed: %s\n", 153 + usb_speed_string(speed)); 153 154 return -EINVAL; 154 155 } 155 156