Commit 0c7f35d2 authored by Galen Guyer's avatar Galen Guyer Committed by Greg Kroah-Hartman

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: default avatarGalen Guyer <galen@galenguyer.com>
Reviewed-By: default avatarHongren Zheng <i@zenithal.me>
Acked-by: default avatarShuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20230508212120.435329-1-galen@galenguyer.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b4a4be84
......@@ -86,7 +86,7 @@ static int import_device(int sockfd, struct usbip_usb_device *udev)
rc = usbip_vhci_driver_open();
if (rc < 0) {
err("open vhci_driver");
err("open vhci_driver (is vhci_hcd loaded?)");
goto err_out;
}
......
......@@ -50,7 +50,7 @@ static int detach_port(char *port)
ret = usbip_vhci_driver_open();
if (ret < 0) {
err("open vhci_driver");
err("open vhci_driver (is vhci_hcd loaded?)");
return -1;
}
......
......@@ -18,7 +18,7 @@ static int list_imported_devices(void)
ret = usbip_vhci_driver_open();
if (ret < 0) {
err("open vhci_driver");
err("open vhci_driver (is vhci_hcd loaded?)");
goto err_names_free;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment