Skip to content

Commit e995f4d

Browse files
Onkarnathbebarino
authored andcommitted
clk: imgtec: use %pe for better readability of errors while printing
instead of printing errros as a number(%ld), it's better to print in string format for better readability of logs. Signed-off-by: Onkarnath <onkarnath.1@samsung.com> Link: https://lore.kernel.org/r/20240412090749.15392-1-onkarnath.1@samsung.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 9c981c8 commit e995f4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/clk/imgtec/clk-boston.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,21 @@ static void __init clk_boston_setup(struct device_node *np)
6767

6868
hw = clk_hw_register_fixed_rate(NULL, "input", NULL, 0, in_freq);
6969
if (IS_ERR(hw)) {
70-
pr_err("failed to register input clock: %ld\n", PTR_ERR(hw));
70+
pr_err("failed to register input clock: %pe\n", hw);
7171
goto fail_input;
7272
}
7373
onecell->hws[BOSTON_CLK_INPUT] = hw;
7474

7575
hw = clk_hw_register_fixed_rate(NULL, "sys", "input", 0, sys_freq);
7676
if (IS_ERR(hw)) {
77-
pr_err("failed to register sys clock: %ld\n", PTR_ERR(hw));
77+
pr_err("failed to register sys clock: %pe\n", hw);
7878
goto fail_sys;
7979
}
8080
onecell->hws[BOSTON_CLK_SYS] = hw;
8181

8282
hw = clk_hw_register_fixed_rate(NULL, "cpu", "input", 0, cpu_freq);
8383
if (IS_ERR(hw)) {
84-
pr_err("failed to register cpu clock: %ld\n", PTR_ERR(hw));
84+
pr_err("failed to register cpu clock: %pe\n", hw);
8585
goto fail_cpu;
8686
}
8787
onecell->hws[BOSTON_CLK_CPU] = hw;

0 commit comments

Comments
 (0)