aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorDima Kogan <dima@secretsauce.net>2024-04-15 21:55:10 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2024-04-18 22:22:51 -0300
commita529bec023d7d14d9fb7d5b456921630e63edc6b (patch)
tree4e5a41d8b686df80fcf93423cfe395a0684418f4 /tools/perf/scripts/python/netdev-times.py
parent03f2357017c37d68e73d7d8d77abfcb72e12bc86 (diff)
perf probe-event: Un-hardcode sizeof(buf)
In several places we had char buf[64]; ... snprintf(buf, 64, ...); This patch changes it to char buf[64]; ... snprintf(buf, sizeof(buf), ...); so the "64" is only stated once. Signed-off-by: Dima Kogan <dima@secretsauce.net> Acked-by: Masami Hiramatsu <mhiramat@kernel.org> Link: https://lore.kernel.org/r/20240416045533.162692-2-dima@secretsauce.net Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions