aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorAlexander Beregalov <a.beregalov@gmail.com>2009-05-21 15:44:46 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-06-19 11:00:53 -0700
commit5e23f3e9626b1bdc425f6351d10be28a57aae9c8 (patch)
tree52a9d0310fd9ba7b4b3ef8e4f64744362ea6adc9 /drivers/staging
parentc32a4e066c42b1b4bd7c472814bce09f16ff8202 (diff)
Staging: cpc-usb: fix printk format warnings
Fix this warnings: cpc-usb_drv.c:478: warning: format '%d' expects type 'int', but argument 4 has type 'size_t' cpc-usb_drv.c:1034: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int' Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/cpc-usb/cpc-usb_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/cpc-usb/cpc-usb_drv.c b/drivers/staging/cpc-usb/cpc-usb_drv.c
index 52f0f0eebb5..f13db7264e3 100644
--- a/drivers/staging/cpc-usb/cpc-usb_drv.c
+++ b/drivers/staging/cpc-usb/cpc-usb_drv.c
@@ -475,7 +475,7 @@ static ssize_t cpcusb_write(struct file *file, const char *buffer,
unsigned char type = 0;
CPC_MSG_T *info = NULL;
- dbg("%s - entered minor %d, count = %d, present = %d",
+ dbg("%s - entered minor %d, count = %zu, present = %d",
__func__, card->minor, count, card->present);
if (count > sizeof(CPC_MSG_T))
@@ -1031,7 +1031,7 @@ static int cpcusb_probe(struct usb_interface *interface,
retval = -ENOMEM;
goto error;
}
- info("Allocated memory for %d messages (%d kbytes)",
+ info("Allocated memory for %d messages (%lu kbytes)",
CPC_MSG_BUF_CNT, (sizeof(CPC_MSG_T) * CPC_MSG_BUF_CNT) / 1000);
memset(chan->buf, 0, sizeof(CPC_MSG_T) * CPC_MSG_BUF_CNT);