Skip to content

Commit

Permalink
ab8500_fg: Fix some build warnings on x86_64
Browse files Browse the repository at this point in the history
Noticed the following warnings:

  CC      drivers/power/ab8500_fg.o
drivers/power/ab8500_fg.c: In function 'charge_full_store':
drivers/power/ab8500_fg.c:2258:2: warning: format '%d' expects argument of type 'int', but argument 4 has type 'ssize_t' [-Wformat]
drivers/power/ab8500_fg.c: In function ‘charge_now_store’:
drivers/power/ab8500_fg.c:2280:2: warning: format '%d' expects argument of type 'int', but argument 4 has type 'ssize_t' [-Wformat]

This patch fixes the issues.

Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
  • Loading branch information
Anton Vorontsov committed Mar 26, 2012
1 parent 6e0e60c commit 5ae2b82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/power/ab8500_fg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2255,7 +2255,7 @@ static ssize_t charge_full_store(struct ab8500_fg *di, const char *buf,

ret = strict_strtoul(buf, 10, &charge_full);

dev_dbg(di->dev, "Ret %d charge_full %lu", ret, charge_full);
dev_dbg(di->dev, "Ret %zd charge_full %lu", ret, charge_full);

if (!ret) {
di->bat_cap.max_mah = (int) charge_full;
Expand All @@ -2277,7 +2277,7 @@ static ssize_t charge_now_store(struct ab8500_fg *di, const char *buf,

ret = strict_strtoul(buf, 10, &charge_now);

dev_dbg(di->dev, "Ret %d charge_now %lu was %d",
dev_dbg(di->dev, "Ret %zd charge_now %lu was %d",
ret, charge_now, di->bat_cap.prev_mah);

if (!ret) {
Expand Down

0 comments on commit 5ae2b82

Please sign in to comment.