aboutsummaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorDima Kogan <[email protected]>2024-04-15 21:55:10 -0700
committerArnaldo Carvalho de Melo <[email protected]>2024-04-18 22:22:51 -0300
commita529bec023d7d14d9fb7d5b456921630e63edc6b (patch)
tree4e5a41d8b686df80fcf93423cfe395a0684418f4 /scripts/const_structs.checkpatch
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 <[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 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions