Skip to content

Commit 5e23f3e

Browse files
alexb0gregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent c32a4e0 commit 5e23f3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/staging/cpc-usb/cpc-usb_drv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ static ssize_t cpcusb_write(struct file *file, const char *buffer,
475475
unsigned char type = 0;
476476
CPC_MSG_T *info = NULL;
477477

478-
dbg("%s - entered minor %d, count = %d, present = %d",
478+
dbg("%s - entered minor %d, count = %zu, present = %d",
479479
__func__, card->minor, count, card->present);
480480

481481
if (count > sizeof(CPC_MSG_T))
@@ -1031,7 +1031,7 @@ static int cpcusb_probe(struct usb_interface *interface,
10311031
retval = -ENOMEM;
10321032
goto error;
10331033
}
1034-
info("Allocated memory for %d messages (%d kbytes)",
1034+
info("Allocated memory for %d messages (%lu kbytes)",
10351035
CPC_MSG_BUF_CNT, (sizeof(CPC_MSG_T) * CPC_MSG_BUF_CNT) / 1000);
10361036
memset(chan->buf, 0, sizeof(CPC_MSG_T) * CPC_MSG_BUF_CNT);
10371037

0 commit comments

Comments
 (0)