[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
- [Qemu-block] [PATCH v2 10/16] ahci: fix host register max address, (continued)
- [Qemu-block] [PATCH v2 10/16] ahci: fix host register max address, John Snow, 2018/05/31
- [Qemu-block] [PATCH v2 11/16] ahci: modify ahci_mem_read_32 to work on register numbers, John Snow, 2018/05/31
- [Qemu-block] [PATCH v2 14/16] ahci: adjust ahci_mem_write to work on registers, John Snow, 2018/05/31
- [Qemu-block] [PATCH v2 15/16] ahci: delete old host register address definitions, John Snow, 2018/05/31
- [Qemu-block] [PATCH v2 12/16] ahci: make mem_read_32 traces more descriptive, John Snow, 2018/05/31
- [Qemu-block] [PATCH v2 13/16] ahci: fix spacing damage on ahci_mem_write, John Snow, 2018/05/31
- [Qemu-block] [PATCH v2 16/16] ahci: make ahci_mem_write traces more descriptive, John Snow, 2018/05/31
- Re: [Qemu-block] [Qemu-devel] [PATCH v2 00/16] AHCI: tracing improvements, no-reply, 2018/05/31
- Re: [Qemu-block] [Qemu-devel] [PATCH v2 00/16] AHCI: tracing improvements, no-reply, 2018/05/31
- Re: [Qemu-block] [Qemu-devel] [PATCH v2 00/16] AHCI: tracing improvements,
John Snow <=
- Re: [Qemu-block] [PATCH v2 00/16] AHCI: tracing improvements, Philippe Mathieu-Daudé, 2018/05/31
- Re: [Qemu-block] [Qemu-devel] [PATCH v2 00/16] AHCI: tracing improvements, John Snow, 2018/05/31