]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
USB2NET: SR9800: use %zu for size_t
authorJingoo Han <jg1.han@samsung.com>
Thu, 13 Feb 2014 07:09:58 +0000 (16:09 +0900)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Feb 2014 23:40:37 +0000 (18:40 -0500)
Use %zu for size_t in order to avoid the following build
warning in printks.

drivers/net/usb/sr9800.c: In function 'sr9800_bind'
drivers/net/usb/sr9800.c:826:2: warning: format '%ld' expects argument of type 'long int' but argument 5 has type 'size_t'
[-Wformat]

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/sr9800.c

index 4175eb9fdecab2ee6e6442a45cd1961b9f18446d..8017108837270e7a5548bb00a87ba33f01a74f97 100644 (file)
@@ -823,7 +823,7 @@ static int sr9800_bind(struct usbnet *dev, struct usb_interface *intf)
                dev->rx_urb_size =
                        SR9800_BULKIN_SIZE[SR9800_MAX_BULKIN_2K].size;
        }
-       netdev_dbg(dev->net, "%s : setting rx_urb_size with : %ld\n", __func__,
+       netdev_dbg(dev->net, "%s : setting rx_urb_size with : %zu\n", __func__,
                   dev->rx_urb_size);
        return 0;