提交 d01c3c8e 编写于 作者: G Greg Kroah-Hartman

Staging: cpc-usb: fix build warnings

This fixes some build warnings in the cpc-usb driver.
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 5e23f3e9
......@@ -1032,7 +1032,7 @@ static int cpcusb_probe(struct usb_interface *interface,
goto error;
}
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, (long unsigned int)(sizeof(CPC_MSG_T) * CPC_MSG_BUF_CNT) / 1000);
memset(chan->buf, 0, sizeof(CPC_MSG_T) * CPC_MSG_BUF_CNT);
ResetBuffer(chan);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册