qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH v2 19/30] trace: Fix parameter types in hw/isa


From: Eric Blake
Subject: [Qemu-devel] [PATCH v2 19/30] trace: Fix parameter types in hw/isa
Date: Mon, 13 Mar 2017 14:55:36 -0500

An upcoming patch will let the compiler warn us when we are silently
losing precision in traces; update the trace definitions to pass
through the full value at the callsite.

Signed-off-by: Eric Blake <address@hidden>
---
 hw/isa/trace-events | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/isa/trace-events b/hw/isa/trace-events
index 9faca41..58179ef 100644
--- a/hw/isa/trace-events
+++ b/hw/isa/trace-events
@@ -1,8 +1,8 @@
 # See docs/tracing.txt for syntax documentation.

 # hw/isa/pc87312.c
-pc87312_io_read(uint32_t addr, uint32_t val) "read addr=%x val=%x"
-pc87312_io_write(uint32_t addr, uint32_t val) "write addr=%x val=%x"
+pc87312_io_read(hwaddr addr, uint32_t val) "read addr=%" HWADDR_PRIx " val=%x"
+pc87312_io_write(hwaddr addr, uint64_t val) "write addr=%" HWADDR_PRIx " 
val=%" PRIx64
 pc87312_info_floppy(uint32_t base) "base 0x%x"
 pc87312_info_ide(uint32_t base) "base 0x%x"
 pc87312_info_parallel(uint32_t base, uint32_t irq) "base 0x%x, irq %u"
-- 
2.9.3




reply via email to

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