staging: usbip: Fix format string mismatch in usbip_vhci_attach_device2
authorMasanari Iida <standby24x7@gmail.com>
Thu, 27 Feb 2014 11:36:31 +0000 (20:36 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2014 23:12:12 +0000 (15:12 -0800)
Argument type of sockfd is set as int, but format string
is set as unsigned int. Fix the mismatch.

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/usbip/userspace/libsrc/vhci_driver.c

index f4bfefec5fcc729f1c5af487e03bad4d6c321bce..d80d37c64cb373c9910d235a5debc81cdc68ec29 100644 (file)
@@ -545,7 +545,7 @@ int usbip_vhci_attach_device2(uint8_t port, int sockfd, uint32_t devid,
                return -1;
        }
 
-       snprintf(buff, sizeof(buff), "%u %u %u %u",
+       snprintf(buff, sizeof(buff), "%u %d %u %u",
                        port, sockfd, devid, speed);
        dbg("writing: %s", buff);
 
This page took 0.044049 seconds and 5 git commands to generate.