drm/gma500: Fix SDVO command debug printing
authorPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Fri, 10 Jun 2022 13:09:25 +0000 (15:09 +0200)
committerPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Mon, 29 Aug 2022 07:42:17 +0000 (09:42 +0200)
commita7c7d23649f1fc3a73507d2aab3a5010a7b6745d
treec29cd5228434cfc71ce7bb5aa49f03161f0e2296
parent61a9fa154d217c13eea90aa5bc635bc4b1fcb66e
drm/gma500: Fix SDVO command debug printing

At some point the DRM printers started adding a newline after each
print. This caused SDVO command debug printing to look weird. Fix this
by using snprintf to print into a buffer which can be printed as a whole
by DRM_DEBUG_KMS(). Code is heavily inspired by i915.

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20220610130925.8650-1-patrik.r.jakobsson@gmail.com
drivers/gpu/drm/gma500/psb_intel_sdvo.c