]> Git Repo - linux.git/commitdiff
clocksource/drivers/pistachio: Correct output format of PTR_ERR()
authorVladimir Zapolskiy <[email protected]>
Mon, 21 Mar 2016 23:42:07 +0000 (01:42 +0200)
committerThomas Gleixner <[email protected]>
Wed, 23 Mar 2016 11:30:40 +0000 (12:30 +0100)
Use signed integer output in the pr_err() string format, here PTR_ERR() value
is negative and it should be reported in human readable way.

Signed-off-by: Vladimir Zapolskiy <[email protected]>
Cc: Jisheng Zhang <[email protected]>
Cc: Ezequiel Garcia <[email protected]>
Cc: Daniel Lezcano <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
drivers/clocksource/time-pistachio.c

index 3269d9ef7a18a1d0f1e505ea77878b87c529d5f7..376e59bc5fa06585baa9799558a451e27e3cdd6d 100644 (file)
@@ -163,7 +163,7 @@ static void __init pistachio_clksrc_of_init(struct device_node *node)
 
        periph_regs = syscon_regmap_lookup_by_phandle(node, "img,cr-periph");
        if (IS_ERR(periph_regs)) {
-               pr_err("cannot get peripheral regmap (%lu)\n",
+               pr_err("cannot get peripheral regmap (%ld)\n",
                       PTR_ERR(periph_regs));
                return;
        }
@@ -176,7 +176,7 @@ static void __init pistachio_clksrc_of_init(struct device_node *node)
 
        sys_clk = of_clk_get_by_name(node, "sys");
        if (IS_ERR(sys_clk)) {
-               pr_err("clock get failed (%lu)\n", PTR_ERR(sys_clk));
+               pr_err("clock get failed (%ld)\n", PTR_ERR(sys_clk));
                return;
        }
 
This page took 0.078833 seconds and 4 git commands to generate.