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

Commit 638a8e5e authored by Jeff Hugo's avatar Jeff Hugo
Browse files

soc: qcom: smem_log: Use correct printk format specifier for size_t



%zu is the correct printk format specifier when printing size_t types.

Update printks to use %zu for size_t type variables.

Change-Id: I30284039ff9f468741741651bbb56924b56b1193
Signed-off-by: default avatarJeffrey Hugo <jhugo@codeaurora.org>
parent ac4bd1fd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -857,7 +857,7 @@ static ssize_t debug_read(struct file *file, char __user *buf,
			bsize = scnprintf(debug_buffer,
				EVENTS_PRINT_SIZE, "Log not available\n");
	}
	DBG("%s: count %d ppos %d\n", __func__, count, (unsigned int)*ppos);
	DBG("%s: count %zu ppos %d\n", __func__, count, (unsigned int)*ppos);
	r =  simple_read_from_buffer(buf, count, ppos, debug_buffer,
				     bsize);
	return r;
@@ -880,7 +880,7 @@ static ssize_t debug_read_cont(struct file *file, char __user *buf,
			bsize = 0;
	}

	DBG("%s: count %d bsize %d\n", __func__, count, bsize);
	DBG("%s: count %zu bsize %d\n", __func__, count, bsize);
	if (copy_to_user(buf, buffer, bsize)) {
		kfree(buffer);
		return -EFAULT;