Skip to content

Commit

Permalink
usbip: tools usbip_network: Fix cryptic error messages
Browse files Browse the repository at this point in the history
Kernel and tool version mismatch message is cryptic. Fix it to be
informative.

Signed-off-by: Shuah Khan <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Shuah Khan authored and gregkh committed Mar 9, 2018
1 parent 0c60b14 commit 8fe8f58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/usb/usbip/src/usbip_network.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ int usbip_net_recv_op_common(int sockfd, uint16_t *code)
PACK_OP_COMMON(0, &op_common);

if (op_common.version != USBIP_VERSION) {
dbg("version mismatch: %d %d", op_common.version,
USBIP_VERSION);
err("USBIP Kernel and tool version mismatch: %d %d:",
op_common.version, USBIP_VERSION);
goto err;
}

Expand Down

0 comments on commit 8fe8f58

Please sign in to comment.