summaryrefslogtreecommitdiff
path: root/drivers/usb/class
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2009-07-28 22:22:41 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-23 17:46:30 +0400
commita2fbf10eba3a38407e3984bc9503342de2b5e399 (patch)
tree9d3200cf03046e64df6a0863f0267fd12afb0491 /drivers/usb/class
parent665d7662d15441b4b3e54131a9418a1a198d0d31 (diff)
downloadlinux-a2fbf10eba3a38407e3984bc9503342de2b5e399.tar.xz
USB: usbtmc: fix printk format warnings
Fix printk format warnings: drivers/usb/class/usbtmc.c:466: warning: format '%zu' expects type 'size_t', but argument 4 has type 'u32' drivers/usb/class/usbtmc.c:466: warning: format '%zu' expects type 'size_t', but argument 5 has type 'int' Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/class')
-rw-r--r--drivers/usb/class/usbtmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/class/usbtmc.c b/drivers/usb/class/usbtmc.c
index 5bab8e596c88..40ef4da786d8 100644
--- a/drivers/usb/class/usbtmc.c
+++ b/drivers/usb/class/usbtmc.c
@@ -463,7 +463,7 @@ static ssize_t usbtmc_read(struct file *filp, char __user *buf,
/* Ensure the instrument doesn't lie about it */
if(n_characters > actual - 12) {
- dev_err(dev, "Device lies about message size: %zu > %zu\n", n_characters, actual - 12);
+ dev_err(dev, "Device lies about message size: %u > %d\n", n_characters, actual - 12);
n_characters = actual - 12;
}