qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [Qemu-devel] [PATCH v2 00/16] AHCI: tracing improvement


From: John Snow
Subject: Re: [Qemu-block] [Qemu-devel] [PATCH v2 00/16] AHCI: tracing improvements
Date: Thu, 31 May 2018 19:48:04 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0


On 05/31/2018 06:49 PM, address@hidden wrote:
> Hi,
> 
> This series failed address@hidden build test. Please find the testing 
> commands and
> their output below. If you have Docker installed, you can probably reproduce 
> it
> locally.
> 

[ blah blah blah ]

> In file included from /tmp/qemu-test/src/hw/ide/ahci.c:30:0:
> /tmp/qemu-test/src/hw/ide/ahci.c: In function 'ahci_mem_write':
> /tmp/qemu-test/src/hw/ide/ahci.c:497:38: error: format '%lx' expects argument 
> of type 'long unsigned int', but argument 3 has type 'hwaddr {aka long long 
> unsigned int}' [-Werror=format=]
>              qemu_log_mask(LOG_UNIMP, "Attempted write to unimplemented 
> register:"
>                                       ^
> /tmp/qemu-test/src/include/qemu/log.h:85:22: note: in definition of macro 
> 'qemu_log_mask'
>              qemu_log(FMT, ## __VA_ARGS__);              \
>                       ^~~
> /tmp/qemu-test/src/hw/ide/ahci.c:498:63: note: format string is defined here
>                            " AHCI host register %s, offset 0x%lx: 0x%"PRIu64,
>                                                              ~~^
>                                                              %llx
> In file included from /tmp/qemu-test/src/hw/ide/ahci.c:30:0:
> /tmp/qemu-test/src/hw/ide/ahci.c:511:34: error: format '%lx' expects argument 
> of type 'long unsigned int', but argument 2 has type 'hwaddr {aka long long 
> unsigned int}' [-Werror=format=]
>          qemu_log_mask(LOG_UNIMP, "Attempted write to unimplemented register: 
> "
>                                   ^
> /tmp/qemu-test/src/include/qemu/log.h:85:22: note: in definition of macro 
> 'qemu_log_mask'
>              qemu_log(FMT, ## __VA_ARGS__);              \
>                       ^~~
> /tmp/qemu-test/src/hw/ide/ahci.c:512:59: note: format string is defined here
>                        "AHCI global register at offset 0x%lx: 0x%"PRIu64,
>                                                          ~~^
>                                                          %llx

Rookie stuff; I forgot hwaddr was just uint64_t, which is implemented as
long on x86_64. Replaced address and value specifications both with
"0x%"PRIx64 in both cases.

--js



reply via email to

[Prev in Thread] Current Thread [Next in Thread]