aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbranso@dismail.de <jbranso@dismail.de>2024-10-22 13:36:39 -0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-10-22 19:57:41 +0200
commit0dd8b683c2d8306be59d9bcc9e2019565ab40ef9 (patch)
tree329c984ef176348e98db9d30f4bf2e962b098dc8
parenteeb1bf1bc9f50df8b92ebeafd80a16e243184ff7 (diff)
downloadgnumach-0dd8b683c2d8306be59d9bcc9e2019565ab40ef9.tar.gz
gnumach-0dd8b683c2d8306be59d9bcc9e2019565ab40ef9.tar.bz2
gnumach-0dd8b683c2d8306be59d9bcc9e2019565ab40ef9.zip
fix a compile warning.
* i386/i386at/acpi_parse_apci.c (acpi_print_info): %lx -> %llx i386/i386at/acpi_parse_apic.c: In function 'acpi_print_info': i386/i386at/acpi_parse_apic.c:51:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'phys_addr_t' {aka 'long long unsigned int'} [-Wformat=] 51 | printf(" rsdp = 0x%lx\n", rsdp); | ~~^ ~~~~ | | | | | phys_addr_t {aka long long unsigned int} | long unsigned int | %llx Message-ID: <20241022173641.2774-2-jbranso@dismail.de>
-rw-r--r--i386/i386at/acpi_parse_apic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386at/acpi_parse_apic.c b/i386/i386at/acpi_parse_apic.c
index 1cfc1791..24470426 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%lx\n", rsdp);
+ printf(" rsdp = 0x%llx\n", rsdp);
printf(" rsdt/xsdt = 0x%p (n = %d)\n", rsdt, acpi_rsdt_n);
}