aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorThorsten Winkler <[email protected]>2023-06-21 15:49:21 +0200
committerPaolo Abeni <[email protected]>2023-06-23 11:55:55 +0200
commit1471d85ffba7d17456670afa1b75e50234caa2c6 (patch)
treed98ccc06aa26847aeb4dc1f181edabe9ba8b2b02 /tools/perf/scripts/python/syscall-counts-by-pid.py
parentd585e4b7480615031f798ef25e4012bfe53ff135 (diff)
s390/ctcm: Convert sprintf/snprintf to scnprintf
This LWN article explains the why scnprintf is preferred over snprintf in general https://lwn.net/Articles/69419/ Ie. snprintf() returns what *would* be the resulting length, while scnprintf() returns the actual length. Note that ctcm_print_statistics() writes the data into the kernel log and is therefore not suitable for sysfs_emit(). Observable behavior is not changed, as there may be dependencies. Reviewed-by: Alexandra Winter <[email protected]> Signed-off-by: Thorsten Winkler <[email protected]> Signed-off-by: Alexandra Winter <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions