]> git.baikalelectronics.ru Git - kernel.git/commit
i915: snprintf returns large values
authorDan Carpenter <error27@gmail.com>
Wed, 8 Sep 2010 19:44:47 +0000 (21:44 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Sep 2010 20:20:22 +0000 (21:20 +0100)
commit82e760769086ffa7555ae20c1084810c2e37f40b
tree383a5cdc743169e64b82e29614ecc498f12bffc5
parent3ebf2f730156d15217b375650b1aefe92d7c95f3
i915: snprintf returns large values

snprintf() returns the number of bytes which would have been used if
there was enough space.  It can be larger than the size of the buffer.
Obviously in this case the buffer is large enough but everyone just
copy and pastes this code so it's better to limit it and set a good
example.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_debugfs.c