projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e23ceb8
)
drm/i915/bios: fix format string of the VBT signature logging
author
Jani Nikula
<jani.nikula@intel.com>
Wed, 16 Dec 2015 13:04:19 +0000
(15:04 +0200)
committer
Jani Nikula
<jani.nikula@intel.com>
Wed, 16 Dec 2015 16:01:32 +0000
(18:01 +0200)
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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/i915/intel_bios.c
b/drivers/gpu/drm/i915/intel_bios.c
index dc3a0fb1946ca8e152fef949fefe02b7341207d3..4c9304e92ff526295096f38bfab35d20e4c531b0 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_bios.c
+++ b/
drivers/gpu/drm/i915/intel_bios.c
@@
-1326,8
+1326,8
@@
intel_bios_init(struct drm_device *dev)
bdb = get_bdb_header(vbt);
- DRM_DEBUG_KMS("VBT signature \"%
20
s\", BDB version %d\n",
- vbt->signature, bdb->version);
+ DRM_DEBUG_KMS("VBT signature \"%
.*
s\", BDB version %d\n",
+
(int)sizeof(vbt->signature),
vbt->signature, bdb->version);
/* Grab useful general definitions */
parse_general_features(dev_priv, bdb);