diff options
author | Wolfgang Denk <wd@denx.de> | 2008-10-19 02:35:49 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-10-21 11:25:38 +0200 |
commit | 08ef89ecd174969b3544f3f0c7cd1de3c57f737b (patch) | |
tree | 3c4f9b6df2d712f18b25733a4648a14eea291bfe /cpu/mpc5xxx | |
parent | d50c7d4be150b2252c0d2e16cfcf69643bdd6dc9 (diff) |
Use strmhz() to format clock frequencies
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'cpu/mpc5xxx')
-rw-r--r-- | cpu/mpc5xxx/speed.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cpu/mpc5xxx/speed.c b/cpu/mpc5xxx/speed.c index 0e3e5525fd3..8027d3e08a2 100644 --- a/cpu/mpc5xxx/speed.c +++ b/cpu/mpc5xxx/speed.c @@ -81,10 +81,13 @@ int get_clocks (void) int prt_mpc5xxx_clks (void) { - printf(" Bus %ld MHz, IPB %ld MHz, PCI %ld MHz\n", - gd->bus_clk / 1000000, gd->ipb_clk / 1000000, - gd->pci_clk / 1000000); + char buf1[32], buf2[32], buf3[32]; + printf (" Bus %s MHz, IPB %s MHz, PCI %s MHz\n", + strmhz(buf1, gd->bus_clk), + strmhz(buf2, gd->ipb_clk), + strmhz(buf3, gd->pci_clk) + ); return (0); } |