summaryrefslogtreecommitdiffstats
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
parent40a46d8b40e326ba77e0858f3a45206ebc201660 (diff)
downloadop-kernel-dev-5484081d2203517602b76ea281bac98a1ab7f144.zip
op-kernel-dev-5484081d2203517602b76ea281bac98a1ab7f144.tar.gz
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>
-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 f4bfefe..d80d37c 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);
OpenPOWER on IntegriCloud