[PATCH] hw/i2c/imx: Fix trace func name error

AlanoSong@163.com posted 1 patch 1 month, 3 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251218141144.51001-1-AlanoSong@163.com
Maintainers: Peter Maydell <peter.maydell@linaro.org>
hw/i2c/imx_i2c.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] hw/i2c/imx: Fix trace func name error
Posted by AlanoSong@163.com 1 month, 3 weeks ago
From: Alano Song <AlanoSong@163.com>

Signed-off-by: Alano Song <AlanoSong@163.com>
---
 hw/i2c/imx_i2c.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/i2c/imx_i2c.c b/hw/i2c/imx_i2c.c
index d26177c85d..22b10e4166 100644
--- a/hw/i2c/imx_i2c.c
+++ b/hw/i2c/imx_i2c.c
@@ -151,8 +151,8 @@ static void imx_i2c_write(void *opaque, hwaddr offset,
 {
     IMXI2CState *s = IMX_I2C(opaque);
 
-    trace_imx_i2c_read(DEVICE(s)->canonical_path, imx_i2c_get_regname(offset),
-                       offset, value);
+    trace_imx_i2c_write(DEVICE(s)->canonical_path, imx_i2c_get_regname(offset),
+                        offset, value);
 
     value &= 0xff;
 
-- 
2.43.0
Re: [PATCH] hw/i2c/imx: Fix trace func name error
Posted by Philippe Mathieu-Daudé 1 month, 3 weeks ago
On 18/12/25 15:11, AlanoSong@163.com wrote:
> From: Alano Song <AlanoSong@163.com>
> 

Oops.

Fixes: e589c0ea9c9 ("hw/i2c/imx_i2c: Convert DPRINTF() to trace events")

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

> Signed-off-by: Alano Song <AlanoSong@163.com>
> ---
>   hw/i2c/imx_i2c.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/i2c/imx_i2c.c b/hw/i2c/imx_i2c.c
> index d26177c85d..22b10e4166 100644
> --- a/hw/i2c/imx_i2c.c
> +++ b/hw/i2c/imx_i2c.c
> @@ -151,8 +151,8 @@ static void imx_i2c_write(void *opaque, hwaddr offset,
>   {
>       IMXI2CState *s = IMX_I2C(opaque);
>   
> -    trace_imx_i2c_read(DEVICE(s)->canonical_path, imx_i2c_get_regname(offset),
> -                       offset, value);
> +    trace_imx_i2c_write(DEVICE(s)->canonical_path, imx_i2c_get_regname(offset),
> +                        offset, value);
>   
>       value &= 0xff;
>