Milos Nikic, le mar. 24 juin 2025 02:35:44 +0100, a ecrit:
> 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.

Applied, thanks!

> ---
>  i386/i386at/acpi_parse_apic.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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);
>  }
>  
> -- 
> 2.50.0
> 
> 

-- 
Samuel
<S> KK1 a 1 conseil de comment s'attaquer a du code java ou ya plus de 50 
classes ? par kel bout ?
<B> le troisième
 -+- #ens-mim en stage -+-

Reply via email to