Skip to content

Commit

Permalink
fsi: master-ast-cf: Fix build warnings on 64-bit platforms
Browse files Browse the repository at this point in the history
A couple of places forgot the 'z' qualifier for dev_dbg
when printing a size_t

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Benjamin Herrenschmidt committed Jul 24, 2018
1 parent 0a21377 commit d0cff24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/fsi/fsi-master-ast-cf.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ static int fsi_master_acf_read(struct fsi_master *_master, int link,
return -ENODEV;

mutex_lock(&master->lock);
dev_dbg(master->dev, "read id %d addr %x size %ud\n", id, addr, size);
dev_dbg(master->dev, "read id %d addr %x size %zd\n", id, addr, size);
build_ar_command(master, &cmd, id, addr, size, NULL);
rc = fsi_master_acf_xfer(master, id, &cmd, size, val);
last_address_update(master, id, rc == 0, addr);
Expand All @@ -631,7 +631,7 @@ static int fsi_master_acf_write(struct fsi_master *_master, int link,

mutex_lock(&master->lock);
build_ar_command(master, &cmd, id, addr, size, val);
dev_dbg(master->dev, "write id %d addr %x size %ud raw_data: %08x\n",
dev_dbg(master->dev, "write id %d addr %x size %zd raw_data: %08x\n",
id, addr, size, *(uint32_t *)val);
rc = fsi_master_acf_xfer(master, id, &cmd, 0, NULL);
last_address_update(master, id, rc == 0, addr);
Expand Down

0 comments on commit d0cff24

Please sign in to comment.