Skip to content

Commit 0c60b14

Browse files
Shuah Khangregkh
authored andcommitted
usbip: tools usbip_attach: Fix cryptic error messages
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>
1 parent 65f4b15 commit 0c60b14

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tools/usb/usbip/src/usbip_attach.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ static int attach_device(char *host, char *busid)
195195

196196
rhport = query_import_device(sockfd, busid);
197197
if (rhport < 0) {
198-
err("query");
198+
err("Attach request for Device %s. Is this device exported?",
199+
busid);
199200
return -1;
200201
}
201202

0 commit comments

Comments
 (0)