aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorChen Zhou <[email protected]>2020-01-20 20:50:33 +0800
committerDavid S. Miller <[email protected]>2020-01-21 10:48:40 +0100
commitbea5416561b1b997adbe3a04a5665e647c589a13 (patch)
tree3c4b8f4d0e7cadc32b8127bd8b062854dfdf7181 /tools/perf/scripts/python/stackcollapse.py
parent49e211c0e357d8c5ccdc3c6c5fb8f94ab85d037f (diff)
net: hns3: replace snprintf with scnprintf in hns3_update_strings
snprintf returns the number of bytes that would be written, which may be greater than the the actual length to be written. Here use extra code to handle this. scnprintf returns the number of bytes that was actually written, just use scnprintf to simplify the code. Signed-off-by: Chen Zhou <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions