staging: vchiq_arm: Fix misuse of %x
authorFuqian Huang <huangfq.daxian@gmail.com>
Tue, 23 Apr 2019 02:55:13 +0000 (10:55 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Apr 2019 10:04:48 +0000 (12:04 +0200)
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>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c

index 120e9b0..ab7d6a0 100644 (file)
@@ -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>",