diff options
author | Milos Nikic <nikic.milos@gmail.com> | 2025-06-24 02:35:44 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-06-24 15:03:28 +0200 |
commit | 0bb929fab7a2689ec9ec1e55fe4765a54a39c46c (patch) | |
tree | cf57dbeb3ed061931a15c402ae046cb3acff666e | |
parent | 3dd7daf59de83dc1675f6647a616a7e50ed533b2 (diff) |
kdb: Fix printf format warning for phys_addr_t
When building without PAE support, phys_addr_t is defined as unsigned long,
but the kdb printf call uses %llx, which expects an unsigned long long.
This triggers a -Wformat warning due to a type mismatch.
Fix this by explicitly casting the phys_addr_t value to unsigned long long,
ensuring the format string and argument type always match.
This avoids build warnings while preserving existing type definitions.
Message-ID: <20250624013544.842-1-nikic.milos@gmail.com>
-rw-r--r-- | i386/i386at/acpi_parse_apic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386at/acpi_parse_apic.c b/i386/i386at/acpi_parse_apic.c index bac5d04d..848585c2 100644 --- a/i386/i386at/acpi_parse_apic.c +++ b/i386/i386at/acpi_parse_apic.c @@ -48,7 +48,7 @@ acpi_print_info(phys_addr_t rsdp, void *rsdt, int acpi_rsdt_n) { printf("ACPI:\n"); - printf(" rsdp = 0x%llx\n", rsdp); + printf(" rsdp = 0x%llx\n", (unsigned long long) rsdp); printf(" rsdt/xsdt = 0x%p (n = %d)\n", rsdt, acpi_rsdt_n); } |