From c166e592a7457e0ac3398cd14ba543bce032c88c Mon Sep 17 00:00:00 2001 From: Philippe Mathieu-Daudé Date: Wed, 11 Jan 2023 09:50:16 +0100 Subject: hw/i2c/bitbang_i2c: Convert DPRINTF() to trace events MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Convert the remaining DPRINTF debug macro uses to tracepoints. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Acked-by: Corey Minyard Message-id: 20230111085016.44551-6-philmd@linaro.org Signed-off-by: Peter Maydell --- hw/i2c/trace-events | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hw/i2c/trace-events') diff --git a/hw/i2c/trace-events b/hw/i2c/trace-events index 48aee4887c..8e88aa24c1 100644 --- a/hw/i2c/trace-events +++ b/hw/i2c/trace-events @@ -2,6 +2,10 @@ # bitbang_i2c.c bitbang_i2c_state(const char *old_state, const char *new_state) "state %s -> %s" +bitbang_i2c_addr(uint8_t addr) "Address 0x%02x" +bitbang_i2c_send(uint8_t byte) "TX byte 0x%02x" +bitbang_i2c_recv(uint8_t byte) "RX byte 0x%02x" +bitbang_i2c_data(unsigned dat, unsigned clk, unsigned old_out, unsigned new_out) "dat %u clk %u out %u -> %u" # core.c -- cgit 1.4.1