]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/sensor/tmp105: Convert printf() to trace event, add tracing for read/write access
authorBernhard Beschow <shentey@gmail.com>
Tue, 5 Nov 2024 10:10:00 +0000 (10:10 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 5 Nov 2024 10:10:00 +0000 (10:10 +0000)
commit3647dca9fbf4fb267c401cdd94519b7a60af0b0b
tree26914620de1840548083d0dede30072468dd277b
parentfe06088b3c5b3bd1a31b499db38b9542deaa2a3e
hw/sensor/tmp105: Convert printf() to trace event, add tracing for read/write access

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 <shentey@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20241103143330.123596-5-shentey@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/sensor/tmp105.c
hw/sensor/trace-events [new file with mode: 0644]
hw/sensor/trace.h [new file with mode: 0644]
meson.build