summaryrefslogtreecommitdiff
path: root/drivers/power/power_supply_sysfs.c
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@xenotime.net>2011-08-22 11:30:47 -0700
committerAnton Vorontsov <cbouatmailru@gmail.com>2011-08-23 17:32:07 +0400
commit85b5fbf784810d80aa09646189848c9ebc8a4ba2 (patch)
tree82af14e69d143c2c9a70b33fac60a8be4e9a6b51 /drivers/power/power_supply_sysfs.c
parent1c74529dbecf8839d3ed360690f937d68c14e55b (diff)
power_supply: Fix sysfs format warning
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>
Diffstat (limited to 'drivers/power/power_supply_sysfs.c')
-rw-r--r--drivers/power/power_supply_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c
index eb9a986c4f9..58cc4906d21 100644
--- a/drivers/power/power_supply_sysfs.c
+++ b/drivers/power/power_supply_sysfs.c
@@ -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;
}