Message ID | 20230615152817.359420-1-marex@denx.de (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | drm/bridge: tc358764: Fix debug print parameter order | expand |
From: Robert Foss <rfoss@kernel.org> On Thu, 15 Jun 2023 17:28:17 +0200, Marek Vasut wrote: > The debug print parameters were swapped in the output and they were > printed as decimal values, both the hardware address and the value. > Update the debug print to print the parameters in correct order, and > use hexadecimal print for both address and value. > > Reviewed-by: Robert Foss <rfoss@kernel.org> Applied, thanks! [1/1] drm/bridge: tc358764: Fix debug print parameter order https://cgit.freedesktop.org/drm/drm-misc/commit/?id=7f947be02aab Rob
diff --git a/drivers/gpu/drm/bridge/tc358764.c b/drivers/gpu/drm/bridge/tc358764.c index f85654f1b1045..8e938a7480f37 100644 --- a/drivers/gpu/drm/bridge/tc358764.c +++ b/drivers/gpu/drm/bridge/tc358764.c @@ -176,7 +176,7 @@ static void tc358764_read(struct tc358764 *ctx, u16 addr, u32 *val) if (ret >= 0) le32_to_cpus(val); - dev_dbg(ctx->dev, "read: %d, addr: %d\n", addr, *val); + dev_dbg(ctx->dev, "read: addr=0x%04x data=0x%08x\n", addr, *val); } static void tc358764_write(struct tc358764 *ctx, u16 addr, u32 val)
The debug print parameters were swapped in the output and they were printed as decimal values, both the hardware address and the value. Update the debug print to print the parameters in correct order, and use hexadecimal print for both address and value. Fixes: f38b7cca6d0e ("drm/bridge: tc358764: Add DSI to LVDS bridge driver") Signed-off-by: Marek Vasut <marex@denx.de> --- Cc: Andrzej Hajda <andrzej.hajda@intel.com> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: David Airlie <airlied@gmail.com> Cc: Jernej Skrabec <jernej.skrabec@gmail.com> Cc: Jonas Karlman <jonas@kwiboo.se> Cc: Laurent Pinchart <Laurent.pinchart@ideasonboard.com> Cc: Neil Armstrong <neil.armstrong@linaro.org> Cc: Robert Foss <rfoss@kernel.org> Cc: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/bridge/tc358764.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)