1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00

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>
This commit is contained in:
Ed Swarthout
2011-03-05 10:28:17 -06:00
committed by Wolfgang Denk
parent 6dc1eceb9c
commit 55f7934d2b
2 changed files with 2 additions and 2 deletions

View File

@@ -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;