diff options
author | Andre Przywara <andre.przywara@arm.com> | 2015-12-22 12:27:43 +0000 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2016-01-25 00:00:49 +0100 |
commit | 2d3e8f70317cc6df93465e51f451d41bad32e010 (patch) | |
tree | 86693ff642be48c71efffe3e8cfdb0e14708a1dd /drivers | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d (diff) | |
download | linux-2d3e8f70317cc6df93465e51f451d41bad32e010.tar.gz linux-2d3e8f70317cc6df93465e51f451d41bad32e010.tar.bz2 linux-2d3e8f70317cc6df93465e51f451d41bad32e010.zip |
drivers: sunxi-rsb: fix error output type
"len" is actually a size_t in this function here, so properly annotate
the dev_err printf type to allow compilation for 64-bit architectures.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/bus/sunxi-rsb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bus/sunxi-rsb.c b/drivers/bus/sunxi-rsb.c index 25996e256110..795c9d9c96a6 100644 --- a/drivers/bus/sunxi-rsb.c +++ b/drivers/bus/sunxi-rsb.c @@ -330,7 +330,7 @@ static int sunxi_rsb_read(struct sunxi_rsb *rsb, u8 rtaddr, u8 addr, cmd = RSB_CMD_RD32; break; default: - dev_err(rsb->dev, "Invalid access width: %d\n", len); + dev_err(rsb->dev, "Invalid access width: %zd\n", len); return -EINVAL; } @@ -372,7 +372,7 @@ static int sunxi_rsb_write(struct sunxi_rsb *rsb, u8 rtaddr, u8 addr, cmd = RSB_CMD_WR32; break; default: - dev_err(rsb->dev, "Invalid access width: %d\n", len); + dev_err(rsb->dev, "Invalid access width: %zd\n", len); return -EINVAL; } |