On Tue, 30 Apr 2019 10:17:50 +0000 Peng Fan <peng....@nxp.com> wrote:
> 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); > } Reviewed-by: Lukasz Majewski <lu...@denx.de> Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lu...@denx.de
pgpYxiAPPmVMV.pgp
Description: OpenPGP digital signature
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot