diff options
author | Bin Meng <bin.meng@windriver.com> | 2021-01-31 20:36:05 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-02-03 03:38:41 -0700 |
commit | 98592c7509278e73b2d56c5e307015d6f33c0f34 (patch) | |
tree | 809adad6c46716e8d0cf73e25b679298e3b45b2f /include/init.h | |
parent | 86c915628d582a36029ff1f6c4443b6e81e0d51f (diff) | |
download | u-boot-98592c7509278e73b2d56c5e307015d6f33c0f34.tar.gz |
bdinfo: Rename function names to be clearer
At present we have bdinfo_print_num() to print unsigned long numbers.
We also have print_phys_addr() which accept numbers that might be
64-bit on a 32-bit platform.
Rename these 2 functions to be clearer:
bdinfo_print_num() => bdinfo_print_num_l()
print_phys_addr() => bdinfo_print_num_ll()
While we are here, make bdinfo_print_num_ll() public so that it can
be used outside cmd/bdinfo.c in the future.
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Diffstat (limited to 'include/init.h')
-rw-r--r-- | include/init.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/init.h b/include/init.h index 980be27993..88f84599e9 100644 --- a/include/init.h +++ b/include/init.h @@ -326,7 +326,8 @@ void relocate_code(ulong start_addr_sp, struct global_data *new_gd, #endif /* Print a numeric value (for use in arch_print_bdinfo()) */ -void bdinfo_print_num(const char *name, ulong value); +void bdinfo_print_num_l(const char *name, ulong value); +void bdinfo_print_num_ll(const char *name, unsigned long long value); /* Print a clock speed in MHz */ void bdinfo_print_mhz(const char *name, unsigned long hz); |