summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/display/intel_dvo.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2022-03-23 20:29:28 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2022-03-29 16:35:33 +0300
commitf01bae2dca3ec54fc607b8879dd4558e8a336dde (patch)
tree43bf1737ffe597658302127b49035ee03ab18417 /drivers/gpu/drm/i915/display/intel_dvo.c
parent5d2fd49db9b48c37041d0f9565b1c6fad2c09ce3 (diff)
downloadlinux-f01bae2dca3ec54fc607b8879dd4558e8a336dde.tar.gz
linux-f01bae2dca3ec54fc607b8879dd4558e8a336dde.tar.bz2
linux-f01bae2dca3ec54fc607b8879dd4558e8a336dde.zip
drm/i915: Use DRM_MODE_FMT+DRM_MODE_ARG()
Replace all drm_mode_debug_printmodeline() calls with DRM_MODE_FMT+DRM_MODE_ARG(). Makes the debug output a bit more terse in places where we previously had a newline in the precedeing drm_dbg_kms(), and avoids anything else sneaking in between the two printk()s in all cases. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220323182935.4701-3-ville.syrjala@linux.intel.com Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dvo.c')
-rw-r--r--drivers/gpu/drm/i915/display/intel_dvo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dvo.c b/drivers/gpu/drm/i915/display/intel_dvo.c
index d4dc16a9c0dd..90e026cef6ee 100644
--- a/drivers/gpu/drm/i915/display/intel_dvo.c
+++ b/drivers/gpu/drm/i915/display/intel_dvo.c
@@ -391,8 +391,8 @@ intel_dvo_get_current_mode(struct intel_encoder *encoder)
mode = intel_encoder_current_mode(encoder);
if (mode) {
- DRM_DEBUG_KMS("using current (BIOS) mode: ");
- drm_mode_debug_printmodeline(mode);
+ DRM_DEBUG_KMS("using current (BIOS) mode: " DRM_MODE_FMT "\n",
+ DRM_MODE_ARG(mode));
mode->type |= DRM_MODE_TYPE_PREFERRED;
}