Skip to content

Commit 0c7f35d

Browse files
galenguyergregkh
authored andcommitted
usbip: give a more helpful error message if vhdi_hcd isn't loaded
Suggest loading vhdi_hcd if it's not loaded to make error message less opaque Signed-off-by: Galen Guyer <[email protected]> Reviewed-By: Hongren Zheng <[email protected]> Acked-by: Shuah Khan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent b4a4be8 commit 0c7f35d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tools/usb/usbip/src/usbip_attach.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static int import_device(int sockfd, struct usbip_usb_device *udev)
8686

8787
rc = usbip_vhci_driver_open();
8888
if (rc < 0) {
89-
err("open vhci_driver");
89+
err("open vhci_driver (is vhci_hcd loaded?)");
9090
goto err_out;
9191
}
9292

tools/usb/usbip/src/usbip_detach.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static int detach_port(char *port)
5050

5151
ret = usbip_vhci_driver_open();
5252
if (ret < 0) {
53-
err("open vhci_driver");
53+
err("open vhci_driver (is vhci_hcd loaded?)");
5454
return -1;
5555
}
5656

tools/usb/usbip/src/usbip_port.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ static int list_imported_devices(void)
1818

1919
ret = usbip_vhci_driver_open();
2020
if (ret < 0) {
21-
err("open vhci_driver");
21+
err("open vhci_driver (is vhci_hcd loaded?)");
2222
goto err_names_free;
2323
}
2424

0 commit comments

Comments
 (0)