aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorDaniel M German <[email protected]>2019-06-19 21:50:38 -0700
committerFelipe Balbi <[email protected]>2019-06-20 08:53:11 +0300
commit37e444c8296c14cb5768a1197b24cfc07ee8e0cd (patch)
tree965d31cbe37f6053012fb00b2ebf545238c0df50 /tools/perf/scripts/python/event_analyzing_sample.py
parentd29fcf7078bc8be2b6366cbd4418265b53c94fac (diff)
usb: Replace snprintf with scnprintf in gether_get_ifname
snprintf returns the actual length of the buffer created; however, this is not the case if snprintf truncates its parameter. See https://lwn.net/Articles/69419/ for a detailed explanation. The current code correctly handles this case at the expense of extra code in the return statement. scnprintf does returns the actual length of the buffer created making the ?: operator unnecessary in the return statement. This change does not alter the functionality of the code. Signed-off-by: Daniel M German <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions