qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] ati-vga: fix tracing


From: Philippe Mathieu-Daudé
Subject: Re: [Qemu-devel] [PATCH] ati-vga: fix tracing
Date: Tue, 12 Mar 2019 14:42:50 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1

Cc'ing Stefan

On 3/12/19 10:56 AM, Daniel P. Berrangé wrote:
> On Tue, Mar 12, 2019 at 09:11:43AM +0100, Gerd Hoffmann wrote:
>> HWADDR_PRIx can't be used in tracing, use PRIx64 instead.
>>
>> Signed-off-by: Gerd Hoffmann <address@hidden>
>> ---
>>  hw/display/trace-events | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/hw/display/trace-events b/hw/display/trace-events
>> index 80993cc4d913..c09854314b03 100644
>> --- a/hw/display/trace-events
>> +++ b/hw/display/trace-events
>> @@ -140,5 +140,5 @@ sii9022_write_reg(uint8_t addr, uint8_t val) "addr 
>> 0x%02x, val 0x%02x"
>>  sii9022_switch_mode(const char *mode) "mode: %s"
>>  
>>  # hw/display/ati*.c
>> -ati_mm_read(unsigned int size, uint64_t addr, const char *name, uint64_t 
>> val) "%u 0x%"HWADDR_PRIx " %s -> 0x%"PRIx64
>> -ati_mm_write(unsigned int size, uint64_t addr, const char *name, uint64_t 
>> val) "%u 0x%"HWADDR_PRIx " %s <- 0x%"PRIx64
>> +ati_mm_read(unsigned int size, uint64_t addr, const char *name, uint64_t 
>> val) "%u 0x%"PRIx64 " %s -> 0x%"PRIx64
>> +ati_mm_write(unsigned int size, uint64_t addr, const char *name, uint64_t 
>> val) "%u 0x%"PRIx64 " %s <- 0x%"PRIx64
> 
> FWIW, it would be valid to just make  log_stap.py automatically convert
> HWADDR_PRIx into "%x", which will have the same functional effect and
> protect us against similar cases in the future.
> 
> I don't mind which solution is used though so
> 
> Reviewed-by: Daniel P. Berrangé <address@hidden>

Reviewed-by: Philippe Mathieu-Daudé <address@hidden>



reply via email to

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