提交 7e96353c 编写于 作者: G Geert Uytterhoeven 提交者: Stephen Boyd

clk: Use %u to format unsigned int in of_clk_src_onecell_get()

Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
上级 3ce6c6e5
...@@ -2932,7 +2932,7 @@ struct clk *of_clk_src_onecell_get(struct of_phandle_args *clkspec, void *data) ...@@ -2932,7 +2932,7 @@ struct clk *of_clk_src_onecell_get(struct of_phandle_args *clkspec, void *data)
unsigned int idx = clkspec->args[0]; unsigned int idx = clkspec->args[0];
if (idx >= clk_data->clk_num) { if (idx >= clk_data->clk_num) {
pr_err("%s: invalid clock index %d\n", __func__, idx); pr_err("%s: invalid clock index %u\n", __func__, idx);
return ERR_PTR(-EINVAL); return ERR_PTR(-EINVAL);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册