diff options
| author | Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com> | 2017-12-21 05:04:53 -0500 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2018-02-19 14:17:04 -0500 |
| commit | 94af870a633831bd167c42472067d14c5ccb607b (patch) | |
| tree | 5ff1a58cf731a4a6644228c508bb62f11e1c4a30 /drivers | |
| parent | 1446413f216fc603f45d0587ac8019f052659658 (diff) | |
drm/radeon: use raw buffer printk specifier
printk format strings accepting a single subsequent argument
are shorter thus easier to read.
Instead of having format strings accepting 3 different arguments
pointing to first 3 bytes of the same buffer rewrite the format
string to accept only one argument - the buffer - with "%3ph"
specifier.
Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/gpu/drm/radeon/radeon_dp_mst.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_dp_mst.c b/drivers/gpu/drm/radeon/radeon_dp_mst.c index 238e6eb842ea..cd8a3ee16649 100644 --- a/drivers/gpu/drm/radeon/radeon_dp_mst.c +++ b/drivers/gpu/drm/radeon/radeon_dp_mst.c | |||
| @@ -718,7 +718,7 @@ radeon_dp_mst_check_status(struct radeon_connector *radeon_connector) | |||
| 718 | DP_SINK_COUNT_ESI, esi, 8); | 718 | DP_SINK_COUNT_ESI, esi, 8); |
| 719 | go_again: | 719 | go_again: |
| 720 | if (dret == 8) { | 720 | if (dret == 8) { |
| 721 | DRM_DEBUG_KMS("got esi %02x %02x %02x\n", esi[0], esi[1], esi[2]); | 721 | DRM_DEBUG_KMS("got esi %3ph\n", esi); |
| 722 | ret = drm_dp_mst_hpd_irq(&radeon_connector->mst_mgr, esi, &handled); | 722 | ret = drm_dp_mst_hpd_irq(&radeon_connector->mst_mgr, esi, &handled); |
| 723 | 723 | ||
| 724 | if (handled) { | 724 | if (handled) { |
| @@ -733,7 +733,7 @@ go_again: | |||
| 733 | dret = drm_dp_dpcd_read(&radeon_connector->ddc_bus->aux, | 733 | dret = drm_dp_dpcd_read(&radeon_connector->ddc_bus->aux, |
| 734 | DP_SINK_COUNT_ESI, esi, 8); | 734 | DP_SINK_COUNT_ESI, esi, 8); |
| 735 | if (dret == 8) { | 735 | if (dret == 8) { |
| 736 | DRM_DEBUG_KMS("got esi2 %02x %02x %02x\n", esi[0], esi[1], esi[2]); | 736 | DRM_DEBUG_KMS("got esi2 %3ph\n", esi); |
| 737 | goto go_again; | 737 | goto go_again; |
| 738 | } | 738 | } |
| 739 | } else | 739 | } else |
