aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorLu Baolu <[email protected]>2023-03-22 12:34:21 +0000
committerJoerg Roedel <[email protected]>2023-03-22 14:47:10 +0000
commitc33fcc13ee0d02efe5729588e8fba8b899c8879a (patch)
tree9b545d19c4cffd19aeabb0c61eb73b5778024dd2 /tools/perf/scripts/python/netdev-times.py
parentiommu: Cleanup iommu_change_dev_def_domain() (diff)
downloadkernel-c33fcc13ee0d02efe5729588e8fba8b899c8879a.tar.gz
kernel-c33fcc13ee0d02efe5729588e8fba8b899c8879a.zip
iommu: Use sysfs_emit() for sysfs show
Use sysfs_emit() instead of the sprintf() for sysfs entries. sysfs_emit() knows the maximum of the temporary buffer used for outputting sysfs content and avoids overrunning the buffer length. Prefer 'long long' over 'long long int' as suggested by checkpatch.pl. Signed-off-by: Lu Baolu <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions