power_supply: Fix sysfs format warning
authorRandy Dunlap <rdunlap@xenotime.net>
Mon, 22 Aug 2011 18:30:47 +0000 (11:30 -0700)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Tue, 23 Aug 2011 13:32:07 +0000 (17:32 +0400)
Fix format warning:

drivers/power/power_supply_sysfs.c:82: warning: format '%d' expects type 'int', but argument 4 has type 'ssize_t'

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/power_supply_sysfs.c

index eb9a986..58cc490 100644 (file)
@@ -77,7 +77,7 @@ static ssize_t power_supply_show_property(struct device *dev,
                        dev_dbg(dev, "driver has no data for `%s' property\n",
                                attr->attr.name);
                else if (ret != -ENODEV)
-                       dev_err(dev, "driver failed to report `%s' property: %d\n",
+                       dev_err(dev, "driver failed to report `%s' property: %zd\n",
                                attr->attr.name, ret);
                return ret;
        }