On 3/11/24 11:33, Bernhard Beschow wrote:
printf() unconditionally prints to the console which disturbs `-serial stdio`.
Fix that by converting into a trace event. While at it, add some tracing for
read and write access.
Fixes: 7e7c5e4c1ba5 "Nokia N800 machine support (ARM)."
Signed-off-by: Bernhard Beschow <[email protected]>
---
meson.build | 1 +
hw/sensor/trace.h | 1 +
hw/sensor/tmp105.c | 7 ++++++-
hw/sensor/trace-events | 6 ++++++
4 files changed, 14 insertions(+), 1 deletion(-)
create mode 100644 hw/sensor/trace.h
create mode 100644 hw/sensor/trace-events
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>