summaryrefslogtreecommitdiff
path: root/lib/strmhz.c
diff options
context:
space:
mode:
authorEd Swarthout <Ed.Swarthout@freescale.com>2011-03-05 10:28:17 -0600
committerWolfgang Denk <wd@denx.de>2011-03-22 23:34:36 +0100
commit55f7934d2b07a62027cb05484ea3f10666a855d1 (patch)
tree73d16bdb28ae1f6aa53f9a9c3a6ca2de867cfc33 /lib/strmhz.c
parent6dc1eceb9c5f42216f1ba0e0ef538015b0aa10bc (diff)
downloadu-boot-imx-55f7934d2b07a62027cb05484ea3f10666a855d1.zip
u-boot-imx-55f7934d2b07a62027cb05484ea3f10666a855d1.tar.gz
u-boot-imx-55f7934d2b07a62027cb05484ea3f10666a855d1.tar.bz2
strmhz: Make hz unsigned to support greater than 2146 MHz clock
For example, an input of 0x80000000 should print: 2147.484 instead of -2147.-483. Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'lib/strmhz.c')
-rw-r--r--lib/strmhz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/strmhz.c b/lib/strmhz.c
index d6da1d1..89f2263 100644
--- a/lib/strmhz.c
+++ b/lib/strmhz.c
@@ -22,7 +22,7 @@
*/
#include <common.h>
-char *strmhz (char *buf, long hz)
+char *strmhz (char *buf, unsigned long hz)
{
long l, n;
long m;