Skip to content

Commit 15695f7

Browse files
committed
drm/i915/display: use drm_print_hex_dump() for crtc state dump
Use the drm_printer based printer to get the device specific printing of the hex dump. Reviewed-by: Andi Shyti <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/12d76e34ed4c508524f768a46d2a2beb09991a23.1733392101.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <[email protected]>
1 parent 3050c18 commit 15695f7

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

drivers/gpu/drm/i915/display/intel_crtc_state_dump.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,6 @@ intel_dump_infoframe(struct drm_i915_private *i915,
5050
hdmi_infoframe_log(KERN_DEBUG, i915->drm.dev, frame);
5151
}
5252

53-
static void
54-
intel_dump_buffer(const char *prefix, const u8 *buf, size_t len)
55-
{
56-
if (!drm_debug_enabled(DRM_UT_KMS))
57-
return;
58-
59-
print_hex_dump(KERN_DEBUG, prefix, DUMP_PREFIX_NONE,
60-
16, 0, buf, len, false);
61-
}
62-
6353
#define OUTPUT_TYPE(x) [INTEL_OUTPUT_ ## x] = #x
6454

6555
static const char * const output_type_str[] = {
@@ -293,8 +283,8 @@ void intel_crtc_state_dump(const struct intel_crtc_state *pipe_config,
293283
drm_dp_as_sdp_log(&p, &pipe_config->infoframes.as_sdp);
294284

295285
if (pipe_config->has_audio)
296-
intel_dump_buffer("ELD: ", pipe_config->eld,
297-
drm_eld_size(pipe_config->eld));
286+
drm_print_hex_dump(&p, "ELD: ", pipe_config->eld,
287+
drm_eld_size(pipe_config->eld));
298288

299289
drm_printf(&p, "vrr: %s, vmin: %d, vmax: %d, pipeline full: %d, guardband: %d flipline: %d, vmin vblank: %d, vmax vblank: %d\n",
300290
str_yes_no(pipe_config->vrr.enable),

0 commit comments

Comments
 (0)