aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2020-02-10 09:51:39 +0000
committerGreg Kroah-Hartman <[email protected]>2020-02-10 11:13:50 -0800
commitb32196e35bd7bbc8038db1aba1fbf022dc469b6a (patch)
tree57775a7010c5bf8a17811d01c190562212d1a5ca /tools/perf/scripts/python/exported-sql-viewer.py
parenta4a601948fc8d0a9661b83df03f5ee11e903efe6 (diff)
usb: dwc3: debug: fix string position formatting mixup with ret and len
Currently the string formatting is mixing up the offset of ret and len. Re-work the code to use just len, remove ret and use scnprintf instead of snprintf and len position accumulation where required. Remove the -ve return check since scnprintf never returns a failure -ve size. Also break overly long lines to clean up checkpatch warnings. Addresses-Coverity: ("Unused value") Fixes: 1381a5113caf ("usb: dwc3: debug: purge usage of strcat") Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Cc: stable <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions