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))
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);