usbip: tools usbip_attach: Fix cryptic error messages
authorShuah Khan <shuahkh@osg.samsung.com>
Tue, 27 Feb 2018 22:23:55 +0000 (15:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Mar 2018 17:16:19 +0000 (09:16 -0800)
Attach device error message is cryptic and useless. Fix it to be
informative.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Reviewed-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/usb/usbip/src/usbip_attach.c

index 7f07b2d..f607387 100644 (file)
@@ -195,7 +195,8 @@ static int attach_device(char *host, char *busid)
 
        rhport = query_import_device(sockfd, busid);
        if (rhport < 0) {
-               err("query");
+               err("Attach request for Device %s. Is this device exported?",
+                   busid);
                return -1;
        }