aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2010-09-08 21:44:47 +0200
committerChris Wilson <[email protected]>2010-09-08 21:20:22 +0100
commitf4433a8d5d3076775bdd1a996a47db7beb468ac0 (patch)
tree383a5cdc743169e64b82e29614ecc498f12bffc5 /tools/perf/scripts/python
parent19966754328d99ee003ddfc7a8c31ceb115483ac (diff)
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 <[email protected]> Signed-off-by: Chris Wilson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions