diff options
| author | Shuah Khan <[email protected]> | 2018-03-07 20:42:26 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-03-09 17:17:09 +0000 |
| commit | ad81b15d561692df1ce2a57dce391d39633209b1 (patch) | |
| tree | 34801798ed490afb0b040cc1334ccc171fa5ea7f /drivers/usb/chipidea/debug.c | |
| parent | usbip: usbip_host_common: Use new error codes to return request status (diff) | |
| download | kernel-ad81b15d561692df1ce2a57dce391d39633209b1.tar.gz kernel-ad81b15d561692df1ce2a57dce391d39633209b1.zip | |
usbip: tools: change to use new error codes in server reply messages
Changed usbip_network, usbip_attach, usbip_list, and usbipd to use
and propagate the new error codes in server reply messages.
usbip_net_recv_op_common() is changed to take a pointer to status
return the status returned in the op_common.status to callers.
usbip_attach and usbip_list use the common interface to print error
messages to indicate why the request failed.
With this change the messages say why a request failed:
- when a client requests a device that is already exported:
usbip attach -r server_name -b 3-10.2
usbip: error: Attach Request for 3-10.2 failed - Device busy (exported)
- when a client requests a device that isn't exportable,
usbip attach -r server_name -b 3-10.4
usbip: error: Attach Request for 3-10.4 failed - Device not found
Signed-off-by: Shuah Khan <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/chipidea/debug.c')
0 files changed, 0 insertions, 0 deletions
