uio: msm_sharedmem: Fix format specifier to print resource_size_t
Use proper printk format specifier %pa to print resource_size_t type variable. Change-Id: I77b1f3ded0957d4a572c5c05996a3649a9b1fb45 Signed-off-by: Nikhilesh Reddy <reddyn@codeaurora.org> [riteshh@codeaurora.org: fixed trivial merge conflicts] Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org> Signed-off-by: Ankit Jain <jankit@codeaurora.org>
This commit is contained in:
parent
f37a744f85
commit
73b51c6a5d
1 changed files with 2 additions and 2 deletions
|
@ -43,9 +43,9 @@ static int sharedmem_mmap(struct uio_info *info, struct vm_area_struct *vma)
|
|||
mem = info->mem + mem_index;
|
||||
|
||||
if (vma->vm_end - vma->vm_start > mem->size) {
|
||||
pr_err("vm_end[%lu] - vm_start[%lu] [%lu] > mem->size[%lu]\n",
|
||||
pr_err("vm_end[%lu] - vm_start[%lu] [%lu] > mem->size[%pa]\n",
|
||||
vma->vm_end, vma->vm_start,
|
||||
(vma->vm_end - vma->vm_start), mem->size);
|
||||
(vma->vm_end - vma->vm_start), &mem->size);
|
||||
return -EINVAL;
|
||||
}
|
||||
pr_debug("Attempting to setup mmap.\n");
|
||||
|
|
Loading…
Reference in a new issue