On 21/1/25 11:59, Titus Rwantare wrote:
This has been useful when debugging and unsure if the guest is
generating i2c traffic.

Signed-off-by: Titus Rwantare <tit...@google.com>
---
  hw/misc/i2c-echo.c   | 8 ++++++++
  hw/misc/trace-events | 5 +++++
  2 files changed, 13 insertions(+)

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>

+#i2c-echo.c
+i2c_echo_event(const char *id, const char *event) "%s: %s"
+i2c_echo_recv(const char *id, uint8_t data) "%s: recv 0x%" PRIx8
+i2c_echo_send(const char *id, uint8_t data) "%s: send 0x%" PRIx8

and queued using 0x02% format, thanks!

Phil.

Reply via email to