usbip: tools usbip_network: Fix cryptic error messages
authorShuah Khan <shuahkh@osg.samsung.com>
Tue, 27 Feb 2018 22:23:56 +0000 (15:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Mar 2018 17:16:20 +0000 (09:16 -0800)
Kernel and tool version mismatch message is cryptic. Fix it to be
informative.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/usb/usbip/src/usbip_network.c

index b4c37e76a6e08f7973bcf324dd87a612d621546d..90325fa8bc3815e38f9aba416d92ae7797d213fe 100644 (file)
@@ -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;
        }