]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
Pointer types are printed with %p
authorJoe Korty <joe.korty@ccur.com>
Wed, 25 May 2016 07:19:59 +0000 (12:49 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Tue, 5 Jul 2016 13:03:57 +0000 (06:03 -0700)
drivers/misc/gps/gps.c:828:3: note:
in expansion of macro 'GPS_DBG'
GPS_DBG("copy_to_user error: 0x%X 0x%X, %d\n",
(unsigned int)buf, (unsigned int)dev->dat_buf,
dev->dat_len);

Bug 200187768

Change-Id: Id0c634639e1a94639cc86051ce0b37dcaf1dfbd7
Signed-off-by: Joe Korty <joe.korty@ccur.com>
Signed-off-by: Gaurav Singh <gaursingh@nvidia.com>
Reviewed-on: http://git-master/r/1163909
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
drivers/misc/gps/gps.c

index e09f1125cd2a08f5e7939afca85eb2f0fb94e22b..3eb9ad8b0cc9dcd78929b933015cc6bf4859f487 100644 (file)
@@ -825,7 +825,7 @@ static ssize_t mt3332_gps_read(struct file *file, char __user *buf, size_t count
        /*data is available*/
        copy_len = (dev->dat_len < (int)count) ? (dev->dat_len) : (int)(count);
        if (copy_to_user(buf, dev->dat_buf+dev->dat_pos, (unsigned long)copy_len)) {
-               GPS_DBG("copy_to_user error: 0x%X 0x%X, %d\n", (unsigned int)buf, (unsigned int)dev->dat_buf, dev->dat_len);
+               GPS_DBG("copy_to_user error: %p %p, %d\n", buf, dev->dat_buf, dev->dat_len);
                ret = -EFAULT;
        } else {
                GPS_VER("mt3332_gps_read(%d,%d,%d) = %d\n", count, dev->dat_pos, dev->dat_len, copy_len);