Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Geert Uytterhoeven and committed by
Rob Herring
0e407a9a 2892d8a0

+6 -14
+4 -10
drivers/of/address.c
··· 76 76 s = of_read_number(range + na + pna, ns); 77 77 da = of_read_number(addr, na); 78 78 79 - pr_debug("default map, cp=%llx, s=%llx, da=%llx\n", 80 - (unsigned long long)cp, (unsigned long long)s, 81 - (unsigned long long)da); 79 + pr_debug("default map, cp=%llx, s=%llx, da=%llx\n", cp, s, da); 82 80 83 81 if (da < cp || da >= (cp + s)) 84 82 return OF_BAD_ADDR; ··· 182 184 s = of_read_number(range + na + pna, ns); 183 185 da = of_read_number(addr + 1, na - 1); 184 186 185 - pr_debug("PCI map, cp=%llx, s=%llx, da=%llx\n", 186 - (unsigned long long)cp, (unsigned long long)s, 187 - (unsigned long long)da); 187 + pr_debug("PCI map, cp=%llx, s=%llx, da=%llx\n", cp, s, da); 188 188 189 189 if (da < cp || da >= (cp + s)) 190 190 return OF_BAD_ADDR; ··· 295 299 s = of_read_number(range + na + pna, ns); 296 300 da = of_read_number(addr + 1, na - 1); 297 301 298 - pr_debug("ISA map, cp=%llx, s=%llx, da=%llx\n", 299 - (unsigned long long)cp, (unsigned long long)s, 300 - (unsigned long long)da); 302 + pr_debug("ISA map, cp=%llx, s=%llx, da=%llx\n", cp, s, da); 301 303 302 304 if (da < cp || da >= (cp + s)) 303 305 return OF_BAD_ADDR; ··· 450 456 451 457 finish: 452 458 of_dump_addr("parent translation for:", addr, pna); 453 - pr_debug("with offset: %llx\n", (unsigned long long)offset); 459 + pr_debug("with offset: %llx\n", offset); 454 460 455 461 /* Translate it into parent bus space */ 456 462 return pbus->translate(addr, offset, pna);
+2 -4
drivers/of/fdt.c
··· 900 900 phys_initrd_start = start; 901 901 phys_initrd_size = end - start; 902 902 903 - pr_debug("initrd_start=0x%llx initrd_end=0x%llx\n", 904 - (unsigned long long)start, (unsigned long long)end); 903 + pr_debug("initrd_start=0x%llx initrd_end=0x%llx\n", start, end); 905 904 } 906 905 #else 907 906 static inline void early_init_dt_check_for_initrd(unsigned long node) ··· 1026 1027 1027 1028 if (size == 0) 1028 1029 continue; 1029 - pr_debug(" - %llx , %llx\n", (unsigned long long)base, 1030 - (unsigned long long)size); 1030 + pr_debug(" - %llx, %llx\n", base, size); 1031 1031 1032 1032 early_init_dt_add_memory_arch(base, size); 1033 1033