diff options
author | Shaokun Zhang <zhangshaokun@hisilicon.com> | 2018-11-05 05:33:35 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-11-06 14:02:14 -0500 |
commit | c2af2a4264f8b6151837dd58623a6cb786348e44 (patch) | |
tree | 91dd83a90d8e481df93100bb15557c9d45b4405d /drivers/gpu | |
parent | 694d0775ca94beccfa8332d9284c1e8b6b19ad01 (diff) |
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc_link.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c index 643407d18cce..7ee9c033acbd 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c | |||
@@ -1707,7 +1707,7 @@ static void write_i2c_retimer_setting( | |||
1707 | i2c_success = i2c_write(pipe_ctx, slave_address, | 1707 | i2c_success = i2c_write(pipe_ctx, slave_address, |
1708 | buffer, sizeof(buffer)); | 1708 | buffer, sizeof(buffer)); |
1709 | RETIMER_REDRIVER_INFO("retimer write to slave_address = 0x%x,\ | 1709 | RETIMER_REDRIVER_INFO("retimer write to slave_address = 0x%x,\ |
1710 | offset = 0x%d, reg_val = 0x%d, i2c_success = %d\n", | 1710 | offset = 0x%x, reg_val = 0x%x, i2c_success = %d\n", |
1711 | slave_address, buffer[0], buffer[1], i2c_success?1:0); | 1711 | slave_address, buffer[0], buffer[1], i2c_success?1:0); |
1712 | if (!i2c_success) | 1712 | if (!i2c_success) |
1713 | /* Write failure */ | 1713 | /* Write failure */ |
@@ -1719,7 +1719,7 @@ static void write_i2c_retimer_setting( | |||
1719 | i2c_success = i2c_write(pipe_ctx, slave_address, | 1719 | i2c_success = i2c_write(pipe_ctx, slave_address, |
1720 | buffer, sizeof(buffer)); | 1720 | buffer, sizeof(buffer)); |
1721 | RETIMER_REDRIVER_INFO("retimer write to slave_address = 0x%x,\ | 1721 | RETIMER_REDRIVER_INFO("retimer write to slave_address = 0x%x,\ |
1722 | offset = 0x%d, reg_val = 0x%d, i2c_success = %d\n", | 1722 | offset = 0x%x, reg_val = 0x%x, i2c_success = %d\n", |
1723 | slave_address, buffer[0], buffer[1], i2c_success?1:0); | 1723 | slave_address, buffer[0], buffer[1], i2c_success?1:0); |
1724 | if (!i2c_success) | 1724 | if (!i2c_success) |
1725 | /* Write failure */ | 1725 | /* Write failure */ |