aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2022-04-26 14:10:24 +0100
committerLen Brown <[email protected]>2022-07-28 14:23:25 -0400
commite13da9a1dbe4c97431286660ec35eceb50003bb3 (patch)
treee64d89256a499b1300b604ad689e60e9f8e5e220 /tools/perf/scripts/python/stackcollapse.py
parent033312336d67a2ca9b5ff4ad35e5dfd99042d2a3 (diff)
tools/power turbostat: replace strncmp with single character compare
Using strncmp for a single character comparison is overly complicated, just use a simpler single character comparison instead. Also stops static analyzers (such as cppcheck) from complaining about strncmp on non-null terminated strings. Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Len Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions