]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
Print size_t variables with %zd
authorJoe Korty <joe.korty@ccur.com>
Wed, 25 May 2016 07:17:45 +0000 (12:47 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Sun, 3 Jul 2016 17:40:47 +0000 (10:40 -0700)
size_t variables to be used with %zd,
not %d and %zu, not %u.

Bug 200187768

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

index 705692781cbfa7e882dd0ac011673e9e2677e046..e09f1125cd2a08f5e7939afca85eb2f0fb94e22b 100644 (file)
@@ -457,7 +457,7 @@ static ssize_t mt3332_store_pwrctl(struct device *dev, struct device_attribute *
                if (!mt3332_gps_set_pwrctl(obj, pwrctl))
                        return count;
         }
-       GPS_DBG("invalid content: '%s', length = %d\n", buf, count);
+       GPS_DBG("invalid content: '%s', length = %zd\n", buf, count);
        return count;
 }
 /******************************************************************************/
@@ -505,7 +505,7 @@ static ssize_t mt3332_store_suspend(struct device *dev, struct device_attribute
                                return count;
                }
        }
-       GPS_DBG("invalid content: '%s', length = %d\n", buf, count);
+       GPS_DBG("invalid content: '%s', length = %zd\n", buf, count);
        return count;
 }
 /******************************************************************************/
@@ -566,7 +566,7 @@ static ssize_t mt3332_store_status(struct device *dev, struct device_attribute *
        }
        if (!mt3332_gps_set_status(obj, buf, count))
                return count;
-       GPS_DBG("invalid content: '%s', length = %d\n", buf, count);
+       GPS_DBG("invalid content: '%s', length = %zd\n", buf, count);
        return count;
 }
 /******************************************************************************/
@@ -609,7 +609,7 @@ static ssize_t mt3332_store_state(struct device *dev, struct device_attribute *a
                if (!mt3332_gps_set_state(obj, state))
                        return count;
        }
-       GPS_DBG("invalid content: '%s', length = %d\n", buf, count);
+       GPS_DBG("invalid content: '%s', length = %zd\n", buf, count);
        return count;
 }
 /******************************************************************************/
@@ -652,7 +652,7 @@ static ssize_t mt3332_store_pwrsave(struct device *dev, struct device_attribute
                if (!mt3332_gps_set_pwrsave(obj, pwrsave))
                        return count;
        }
-       GPS_DBG("invalid content: '%s', length = %d\n", buf, count);
+       GPS_DBG("invalid content: '%s', length = %zd\n", buf, count);
        return count;
 }
 /******************************************************************************/
@@ -701,7 +701,7 @@ static ssize_t mt3332_store_rdelay(struct device *dev, struct device_attribute *
                mutex_unlock(&obj->sem);
                return count;
        }
-       GPS_DBG("invalid content: '%s', length = %d\n", buf, count);
+       GPS_DBG("invalid content: '%s', length = %zd\n", buf, count);
        return count;
 }
 /******************************************************************************/