Print err value when clk_get_rate failed Signed-off-by: Peng Fan <peng....@nxp.com> --- cmd/clk.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/cmd/clk.c b/cmd/clk.c index 2ea82176aa..73d963184d 100644 --- a/cmd/clk.c +++ b/cmd/clk.c @@ -41,6 +41,8 @@ int __weak soc_clk_dump(void) rate = clk_get_rate(&clk); if (!IS_ERR_VALUE(rate)) printf("%-30.30s : %lu Hz\n", dev->name, rate); + else + printf("%-30.30s : err=%ld\n", dev->name, rate); clk_free(&clk); } -- 2.16.4 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot