]> Git Repo - linux.git/commitdiff
drivers: sunxi-rsb: fix error output type
authorAndre Przywara <[email protected]>
Tue, 22 Dec 2015 12:27:43 +0000 (12:27 +0000)
committerMaxime Ripard <[email protected]>
Sun, 24 Jan 2016 23:00:49 +0000 (00:00 +0100)
"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 <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Signed-off-by: Maxime Ripard <[email protected]>
drivers/bus/sunxi-rsb.c

index 25996e2561105ac615cf4cc99c468f7a8db0f3df..795c9d9c96a6d5ae08c036a221ae1f9a4b1f9c1b 100644 (file)
@@ -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;
        }
 
This page took 0.052546 seconds and 4 git commands to generate.