diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2021-06-16 11:27:45 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2021-06-16 21:55:05 +0200 |
commit | 0e407a9a29ff0471a57e88006897d5e7d5cd9505 (patch) | |
tree | 6b6e90d68d145cfb7f8f4bb1dc6b8c9537306275 /drivers/of/fdt.c | |
parent | of: Fix truncation of memory sizes on 32-bit platforms (diff) | |
download | linux-0e407a9a29ff0471a57e88006897d5e7d5cd9505.tar.xz linux-0e407a9a29ff0471a57e88006897d5e7d5cd9505.zip |
of: Remove superfluous casts when printing u64 values
"u64" is "unsigned long long" on all architectures now. Hence there is
no longer a need to use casts when formatting using the "ll" length
modifier.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/ef3f4f78385b43230695ba0855d078290c958192.1623835273.git.geert+renesas@glider.be
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/fdt.c')
-rw-r--r-- | drivers/of/fdt.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index cc71e0b3eed9..e0f96e3ef1da 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -900,8 +900,7 @@ static void __init early_init_dt_check_for_initrd(unsigned long node) phys_initrd_start = start; phys_initrd_size = end - start; - pr_debug("initrd_start=0x%llx initrd_end=0x%llx\n", - (unsigned long long)start, (unsigned long long)end); + pr_debug("initrd_start=0x%llx initrd_end=0x%llx\n", start, end); } #else static inline void early_init_dt_check_for_initrd(unsigned long node) @@ -1027,8 +1026,7 @@ int __init early_init_dt_scan_memory(unsigned long node, const char *uname, if (size == 0) continue; - pr_debug(" - %llx , %llx\n", (unsigned long long)base, - (unsigned long long)size); + pr_debug(" - %llx, %llx\n", base, size); early_init_dt_add_memory_arch(base, size); |