浏览代码

Staging: cpc-usb: fix build warnings

This fixes some build warnings in the cpc-usb driver.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Greg Kroah-Hartman 16 年之前
父节点
当前提交
d01c3c8e13
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/staging/cpc-usb/cpc-usb_drv.c

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

@@ -1032,7 +1032,7 @@ static int cpcusb_probe(struct usb_interface *interface,
 		goto error;
 		goto error;
 	}
 	}
 	info("Allocated memory for %d messages (%lu 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, (long unsigned int)(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);
 
 
 	ResetBuffer(chan);
 	ResetBuffer(chan);