mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
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: Fuqian Huang <huangfq.daxian@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3970d0d818
commit
e9f1040f47
1 changed files with 4 additions and 4 deletions
|
@ -1458,16 +1458,16 @@ vchiq_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
|||
if ((status == VCHIQ_SUCCESS) && (ret < 0) && (ret != -EINTR) &&
|
||||
(ret != -EWOULDBLOCK))
|
||||
vchiq_log_info(vchiq_arm_log_level,
|
||||
" ioctl instance %lx, cmd %s -> status %d, %ld",
|
||||
(unsigned long)instance,
|
||||
" ioctl instance %pK, cmd %s -> status %d, %ld",
|
||||
instance,
|
||||
(_IOC_NR(cmd) <= VCHIQ_IOC_MAX) ?
|
||||
ioctl_names[_IOC_NR(cmd)] :
|
||||
"<invalid>",
|
||||
status, ret);
|
||||
else
|
||||
vchiq_log_trace(vchiq_arm_log_level,
|
||||
" ioctl instance %lx, cmd %s -> status %d, %ld",
|
||||
(unsigned long)instance,
|
||||
" ioctl instance %pK, cmd %s -> status %d, %ld",
|
||||
instance,
|
||||
(_IOC_NR(cmd) <= VCHIQ_IOC_MAX) ?
|
||||
ioctl_names[_IOC_NR(cmd)] :
|
||||
"<invalid>",
|
||||
|
|
Loading…
Reference in a new issue