]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/bios: fix format string of the VBT signature logging
authorJani Nikula <jani.nikula@intel.com>
Wed, 16 Dec 2015 13:04:19 +0000 (15:04 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 16 Dec 2015 16:01:32 +0000 (18:01 +0200)
commit1a1d3b1c6ddc460deea78545f4886553b2ebddc3
treed2b10d7ac312cddfa377eaefff414903e9f78aff
parenta718b9cd5672904e1c17cfb167550eff593370f3
drm/i915/bios: fix format string of the VBT signature logging

Specify the maximum number of letters to print from the potentially
unterminated buffer, not the minimum. While at it, use sizeof instead of
a magic number.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1450271061-32646-2-git-send-email-jani.nikula@intel.com
drivers/gpu/drm/i915/intel_bios.c