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>
/*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);