aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorDave Gordon <[email protected]>2015-08-17 17:30:52 +0100
committerDaniel Vetter <[email protected]>2015-08-26 09:59:28 +0200
commit4eee4920f05e39e22571deb57f1c314ce7a46e7f (patch)
tree417b4bcfbabb8dfa0f2091d5a536f9ea625ebe35 /tools/perf/scripts/python/syscall-counts.py
parent901c2daf05c8ae6c3f85370fc96b9b6892f5da2d (diff)
drm/i915: fix driver's versions of WARN_ON & WARN_ON_ONCE
The current versions of these two macros don't work correctly if the argument expression happens to contain a modulo operator (%) -- when stringified, it gets interpreted as a printf formatting character! With a specifically crafted parameter, this could probably cause a kernel OOPS; consider WARN_ON(p%s) or WARN_ON(f %*pEp). Instead, we should use an explicit "%s" format, with the stringified expression as the coresponding literal-string argument. Signed-off-by: Dave Gordon <[email protected]> Reviewed-by: Paulo Zanoni <[email protected]> Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions