Skip to content

Commit f47a669

Browse files
lategoodbyeabelvesa
authored andcommitted
clk: imx: clk-gpr-mux: Provide clock name in error message
In error case the error message doesn't provide much context: imx:clk-gpr-mux: failed to get parent (-EINVAL) So additionally provide the clock name in the message, in order to simplify the further analyze. Signed-off-by: Stefan Wahren <[email protected]> Reviewed-by: Peng Fan <[email protected]> Signed-off-by: Abel Vesa <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 46a9744 commit f47a669

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/clk/imx/clk-gpr-mux.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ static u8 imx_clk_gpr_mux_get_parent(struct clk_hw *hw)
4848
return ret;
4949

5050
get_parent_err:
51-
pr_err("failed to get parent (%pe)\n", ERR_PTR(ret));
51+
pr_err("%s: failed to get parent (%pe)\n",
52+
clk_hw_get_name(hw), ERR_PTR(ret));
5253

5354
/* return some realistic non negative value. Potentially we could
5455
* give index to some dummy error parent.

0 commit comments

Comments
 (0)