clocksource/drivers/pistachio: Correct output format of PTR_ERR()
authorVladimir Zapolskiy <vz@mleia.com>
Mon, 21 Mar 2016 23:42:07 +0000 (01:42 +0200)
committerThomas Gleixner <tglx@linutronix.de>
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 <vz@mleia.com>
Cc: Jisheng Zhang <jszhang@marvell.com>
Cc: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: http://lkml.kernel.org/r/1458603727-4446-1-git-send-email-vz@mleia.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
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;
        }