[U-Boot] [i.MX8MM+CCF 06/41] cmd: clk: print err value when clk_get_rate failed

Peng Fan peng.fan at nxp.com
Tue Apr 30 10:17:50 UTC 2019


Print err value when clk_get_rate failed

Signed-off-by: Peng Fan <peng.fan at 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



More information about the U-Boot mailing list