diff options
author | Bryan O'Donoghue <pure.logic@nexus-software.ie> | 2017-05-15 12:58:59 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-06-01 11:13:44 +0200 |
commit | ee177c5d6369f8e5d3e4793dce501cf4431313a1 (patch) | |
tree | 7bd33ae6ef596b98f525b7ad393781b1088d45b3 /drivers/clk/clk-conf.c | |
parent | clk: scpi: fix return type of __scpi_dvfs_round_rate (diff) | |
download | linux-ee177c5d6369f8e5d3e4793dce501cf4431313a1.tar.xz linux-ee177c5d6369f8e5d3e4793dce501cf4431313a1.zip |
clk: Fix __set_clk_rates error print-string
When failing to set a clock the printout emitted is incorrect.
"u32 rate" is formatted as %d and should be %u whereas "unsigned long
clk_set_rate()" is formatted as %ld and should be %lu as per
Documentation/printk-formats.txt.
Fixes: 2885c3b2a3da ("clk: Show correct information when fail to set clock rate")
Signed-off-by: Bryan O'Donoghue <pure.logic@nexus-software.ie>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/clk-conf.c')
-rw-r--r-- | drivers/clk/clk-conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-conf.c b/drivers/clk/clk-conf.c index e0e02a6e5900..7ec36722f8ab 100644 --- a/drivers/clk/clk-conf.c +++ b/drivers/clk/clk-conf.c @@ -109,7 +109,7 @@ static int __set_clk_rates(struct device_node *node, bool clk_supplier) rc = clk_set_rate(clk, rate); if (rc < 0) - pr_err("clk: couldn't set %s clk rate to %d (%d), current rate: %ld\n", + pr_err("clk: couldn't set %s clk rate to %u (%d), current rate: %lu\n", __clk_get_name(clk), rate, rc, clk_get_rate(clk)); clk_put(clk); |