Commit e9f1040f authored by Fuqian Huang's avatar Fuqian Huang Committed by Greg Kroah-Hartman

staging: vchiq_arm: Fix misuse of %x

Pointers should be printed with %p or %px rather than
cast to unsigned long type and printed with %lx.
Change %lx to %pK to print the pointers.
Signed-off-by: default avatarFuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3970d0d8
...@@ -1458,16 +1458,16 @@ vchiq_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ...@@ -1458,16 +1458,16 @@ vchiq_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
if ((status == VCHIQ_SUCCESS) && (ret < 0) && (ret != -EINTR) && if ((status == VCHIQ_SUCCESS) && (ret < 0) && (ret != -EINTR) &&
(ret != -EWOULDBLOCK)) (ret != -EWOULDBLOCK))
vchiq_log_info(vchiq_arm_log_level, vchiq_log_info(vchiq_arm_log_level,
" ioctl instance %lx, cmd %s -> status %d, %ld", " ioctl instance %pK, cmd %s -> status %d, %ld",
(unsigned long)instance, instance,
(_IOC_NR(cmd) <= VCHIQ_IOC_MAX) ? (_IOC_NR(cmd) <= VCHIQ_IOC_MAX) ?
ioctl_names[_IOC_NR(cmd)] : ioctl_names[_IOC_NR(cmd)] :
"<invalid>", "<invalid>",
status, ret); status, ret);
else else
vchiq_log_trace(vchiq_arm_log_level, vchiq_log_trace(vchiq_arm_log_level,
" ioctl instance %lx, cmd %s -> status %d, %ld", " ioctl instance %pK, cmd %s -> status %d, %ld",
(unsigned long)instance, instance,
(_IOC_NR(cmd) <= VCHIQ_IOC_MAX) ? (_IOC_NR(cmd) <= VCHIQ_IOC_MAX) ?
ioctl_names[_IOC_NR(cmd)] : ioctl_names[_IOC_NR(cmd)] :
"<invalid>", "<invalid>",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment