Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c31b6d19 authored by Tarun Gupta's avatar Tarun Gupta
Browse files

USB: ccid_bridge: Fix compilation error for 64 bit kernel



In 64 bit %zu should be used for printf length modifer for size_t if %d
is used instead it will throw an error for incompatible argument type. Fix
this by using %zu at appropriate place.

CRs-Fixed: 671900
Change-Id: Ieb8f55f262c699f016f9fcbf09dde5c9a28b1481
Signed-off-by: default avatarTarun Gupta <tarung@codeaurora.org>
parent 60d75479
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -272,7 +272,7 @@ static ssize_t ccid_bridge_write(struct file *fp, const char __user *ubuf,
	char *kbuf;
	ktime_t start_t, delta_t;

	pr_debug("called with %d", count);
	pr_debug("called with %zu", count);

	if (!ccid->intf) {
		pr_debug("intf is not active");
@@ -360,7 +360,7 @@ static ssize_t ccid_bridge_read(struct file *fp, char __user *ubuf,
	char *kbuf;
	ktime_t start_t, delta_t;

	pr_debug("called with %d", count);
	pr_debug("called with %zu", count);
	if (!ccid->intf) {
		pr_debug("intf is not active");
		return -ENODEV;