mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
Change print_size to take phys_size_t
Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
This commit is contained in:
parent
b57ca3e128
commit
61b09fc295
2 changed files with 2 additions and 2 deletions
|
@ -204,7 +204,7 @@ void hang (void) __attribute__ ((noreturn));
|
||||||
/* */
|
/* */
|
||||||
long int initdram (int);
|
long int initdram (int);
|
||||||
int display_options (void);
|
int display_options (void);
|
||||||
void print_size (ulong, const char *);
|
void print_size (phys_size_t, const char *);
|
||||||
int print_buffer (ulong addr, void* data, uint width, uint count, uint linelen);
|
int print_buffer (ulong addr, void* data, uint width, uint count, uint linelen);
|
||||||
|
|
||||||
/* common/main.c */
|
/* common/main.c */
|
||||||
|
|
|
@ -42,7 +42,7 @@ int display_options (void)
|
||||||
* print sizes as "xxx kB", "xxx.y kB", "xxx MB" or "xxx.y MB" as needed;
|
* print sizes as "xxx kB", "xxx.y kB", "xxx MB" or "xxx.y MB" as needed;
|
||||||
* allow for optional trailing string (like "\n")
|
* allow for optional trailing string (like "\n")
|
||||||
*/
|
*/
|
||||||
void print_size (ulong size, const char *s)
|
void print_size (phys_size_t size, const char *s)
|
||||||
{
|
{
|
||||||
ulong m, n;
|
ulong m, n;
|
||||||
ulong d = 1 << 20; /* 1 MB */
|
ulong d = 1 << 20; /* 1 MB */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue