drm/i915/sdvo: Fix up debug output to not split lines
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 27 Nov 2013 15:03:01 +0000 (16:03 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 28 Nov 2013 07:31:49 +0000 (08:31 +0100)
commit84fcb46977e57bafba40bde32067bacc1e510f9c
treea2c9ad3e3a1fe26b1eefc5839cb62704b44fc37a
parent5bc0e85cc6207650535e579b0995aa9574a8ecba
drm/i915/sdvo: Fix up debug output to not split lines

It leads to a big mess when stuff interleaves. Especially with the new
patch I've submitted for the drm core to no longer artificially split
up debug messages.

v2: The size parameter to snprintf includes the terminating 0, but the
return value does not. Adjust the logic accordingly. Spotted by Mika.

Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_sdvo.c