Skip to content

Commit 8ed4ec3

Browse files
zhangshkalexdeucher
authored andcommitted
drm/amd/display: Fix misleading buffer information
RETIMER_REDRIVER_INFO shows the buffer as a decimal value with a '0x' prefix, which is somewhat misleading. Fix it to print hexadecimal, as was intended. Fixes: 2f14bc89("drm/amd/display: add retimer log for HWQ tuning use.") Cc: Charlene Liu <charlene.liu@amd.com> Cc: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com> Reviewed-by: Leo Li <sunpeng.li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 63088da commit 8ed4ec3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/amd/display/dc/core/dc_link.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,7 +1722,7 @@ static void write_i2c_retimer_setting(
17221722
i2c_success = i2c_write(pipe_ctx, slave_address,
17231723
buffer, sizeof(buffer));
17241724
RETIMER_REDRIVER_INFO("retimer write to slave_address = 0x%x,\
1725-
offset = 0x%d, reg_val = 0x%d, i2c_success = %d\n",
1725+
offset = 0x%x, reg_val = 0x%x, i2c_success = %d\n",
17261726
slave_address, buffer[0], buffer[1], i2c_success?1:0);
17271727
if (!i2c_success)
17281728
/* Write failure */
@@ -1734,7 +1734,7 @@ static void write_i2c_retimer_setting(
17341734
i2c_success = i2c_write(pipe_ctx, slave_address,
17351735
buffer, sizeof(buffer));
17361736
RETIMER_REDRIVER_INFO("retimer write to slave_address = 0x%x,\
1737-
offset = 0x%d, reg_val = 0x%d, i2c_success = %d\n",
1737+
offset = 0x%x, reg_val = 0x%x, i2c_success = %d\n",
17381738
slave_address, buffer[0], buffer[1], i2c_success?1:0);
17391739
if (!i2c_success)
17401740
/* Write failure */

0 commit comments

Comments
 (0)