msm: clock-debug: Print clock name and rate on failure
Make this error message more informative about which clock failed
to have its rate changed, and what rate was attempted. Not all
users of debugfs are people and so the rate setting operation may
be buried layers deep in a script somewhere.
Change-Id: I6ae7f77f677b5077a294811d993df20aeadf1091
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
diff --git a/arch/arm/mach-msm/clock-debug.c b/arch/arm/mach-msm/clock-debug.c
index 9ebba2b..099b012 100644
--- a/arch/arm/mach-msm/clock-debug.c
+++ b/arch/arm/mach-msm/clock-debug.c
@@ -35,7 +35,8 @@
clk_set_max_rate(clock, val);
ret = clk_set_rate(clock, val);
if (ret)
- pr_err("clk_set_rate failed (%d)\n", ret);
+ pr_err("clk_set_rate(%s, %lu) failed (%d)\n", clock->dbg_name,
+ (unsigned long)val, ret);
return ret;
}