提交 5e23f3e9 编写于 作者: A Alexander Beregalov 提交者: Greg Kroah-Hartman

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: NAlexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 c32a4e06
...@@ -475,7 +475,7 @@ static ssize_t cpcusb_write(struct file *file, const char *buffer, ...@@ -475,7 +475,7 @@ static ssize_t cpcusb_write(struct file *file, const char *buffer,
unsigned char type = 0; unsigned char type = 0;
CPC_MSG_T *info = NULL; 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); __func__, card->minor, count, card->present);
if (count > sizeof(CPC_MSG_T)) if (count > sizeof(CPC_MSG_T))
...@@ -1031,7 +1031,7 @@ static int cpcusb_probe(struct usb_interface *interface, ...@@ -1031,7 +1031,7 @@ static int cpcusb_probe(struct usb_interface *interface,
retval = -ENOMEM; retval = -ENOMEM;
goto error; 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); 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); memset(chan->buf, 0, sizeof(CPC_MSG_T) * CPC_MSG_BUF_CNT);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册