aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorGuojia Liao <[email protected]>2020-01-21 16:42:09 +0800
committerDavid S. Miller <[email protected]>2020-01-21 11:46:21 +0100
commitcdc37385e3abaf2704adf8bb15a2c14f04762d3d (patch)
tree630ce0b1326ffe436fd9deb54efe1fc0b026243c /tools/perf/scripts/python/stackcollapse.py
parent9027d043fc31145918b40b7a68956eaff4ddb5de (diff)
net: hns3: refine the input parameter 'size' for snprintf()
The function snprintf() writes at most size bytes (including the terminating null byte ('\0') to str. Now, We can guarantee that the parameter of size is lager than the length of str to be formatting including its terminating null byte. So it's unnecessary to minus 1 for the input parameter 'size'. Signed-off-by: Guojia Liao <[email protected]> Signed-off-by: Huazhong Tan <[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