Skip to content

Commit 1637c31

Browse files
mtk-rex-bc-chendigetx
authored andcommitted
drm/mediatek: dp: Fix compiler warning in mtk_dp_video_mute()
Fix debug message formatting by using %s instead of 0x%x. Fixes: f70ac09 ("drm/mediatek: Add MT8195 Embedded DisplayPort driver") Reported-by: Chun-Kuang Hu <[email protected]> Signed-off-by: Bo-Chen Chen <[email protected]> Reviewed-by: Matthias Brugger <[email protected]> Acked-by: Chun-Kuang Hu <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Signed-off-by: Dmitry Osipenko <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 821ddae commit 1637c31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/mediatek/mtk_dp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,8 +1222,8 @@ static void mtk_dp_video_mute(struct mtk_dp *mtk_dp, bool enable)
12221222
mtk_dp->data->smc_cmd, enable,
12231223
0, 0, 0, 0, 0, &res);
12241224

1225-
dev_dbg(mtk_dp->dev, "smc cmd: 0x%x, p1: 0x%x, ret: 0x%lx-0x%lx\n",
1226-
mtk_dp->data->smc_cmd, enable, res.a0, res.a1);
1225+
dev_dbg(mtk_dp->dev, "smc cmd: 0x%x, p1: %s, ret: 0x%lx-0x%lx\n",
1226+
mtk_dp->data->smc_cmd, enable ? "enable" : "disable", res.a0, res.a1);
12271227
}
12281228

12291229
static void mtk_dp_audio_mute(struct mtk_dp *mtk_dp, bool mute)

0 commit comments

Comments
 (0)