Skip to content
Snippets Groups Projects
Commit 55f7934d authored by Ed Swarthout's avatar Ed Swarthout Committed by Wolfgang Denk
Browse files

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: default avatarEd Swarthout <Ed.Swarthout@freescale.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 6dc1eceb
No related branches found
No related tags found
No related merge requests found
......@@ -648,7 +648,7 @@ int sprintf(char * buf, const char *fmt, ...)
int vsprintf(char *buf, const char *fmt, va_list args);
/* lib/strmhz.c */
char * strmhz(char *buf, long hz);
char * strmhz(char *buf, unsigned long hz);
/* lib/crc32.c */
#include <u-boot/crc.h>
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment