summaryrefslogtreecommitdiff
path: root/drivers/staging/usbip
diff options
context:
space:
mode:
authorMasanari Iida <standby24x7@gmail.com>2014-02-27 20:36:31 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-27 15:12:12 -0800
commit5484081d2203517602b76ea281bac98a1ab7f144 (patch)
tree2c653cd258072aa8c89b3a3d29a2dab44c2cae5a /drivers/staging/usbip
parent40a46d8b40e326ba77e0858f3a45206ebc201660 (diff)
staging: usbip: Fix format string mismatch in usbip_vhci_attach_device2
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>
Diffstat (limited to 'drivers/staging/usbip')
-rw-r--r--drivers/staging/usbip/userspace/libsrc/vhci_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/usbip/userspace/libsrc/vhci_driver.c b/drivers/staging/usbip/userspace/libsrc/vhci_driver.c
index f4bfefec5fcc..d80d37c64cb3 100644
--- a/drivers/staging/usbip/userspace/libsrc/vhci_driver.c
+++ b/drivers/staging/usbip/userspace/libsrc/vhci_driver.c
@@ -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);