mirror of
https://github.com/frank-w/u-boot.git
synced 2026-01-09 18:12:57 +08:00
Tidy up data sizes and function comment in display_options
Use inttypes.h and uint64_t to correct the code so that it will not issue warnings on 64-bit machines where 'uint64_t' is 'unsigned long'. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -253,7 +253,19 @@ int cpu_init(void);
|
||||
/* */
|
||||
phys_size_t initdram (int);
|
||||
int display_options (void);
|
||||
void print_size(unsigned long long, const char *);
|
||||
|
||||
/**
|
||||
* print_size() - Print a size with a suffic
|
||||
*
|
||||
* print sizes as "xxx KiB", "xxx.y KiB", "xxx MiB", "xxx.y MiB",
|
||||
* xxx GiB, xxx.y GiB, etc as needed; allow for optional trailing string
|
||||
* (like "\n")
|
||||
*
|
||||
* @size: Size to print
|
||||
* @suffix String to print after the size
|
||||
*/
|
||||
void print_size(uint64_t size, const char *suffix);
|
||||
|
||||
int print_buffer(ulong addr, const void *data, uint width, uint count,
|
||||
uint linelen);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user