mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00: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:
parent
6dc1eceb9c
commit
55f7934d2b
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue