diff options
| author | Dima Kogan <[email protected]> | 2024-04-16 04:55:10 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2024-04-19 01:22:51 +0000 |
| commit | a529bec023d7d14d9fb7d5b456921630e63edc6b (patch) | |
| tree | 4e5a41d8b686df80fcf93423cfe395a0684418f4 /tools/perf/util/annotate.c | |
| parent | perf stat: Add new field in stat_config to enable hardware aware grouping (diff) | |
| download | kernel-a529bec023d7d14d9fb7d5b456921630e63edc6b.tar.gz kernel-a529bec023d7d14d9fb7d5b456921630e63edc6b.zip | |
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 <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.c')
0 files changed, 0 insertions, 0 deletions
