Skip to content
Commit a529bec0 authored by Dima Kogan's avatar Dima Kogan Committed by Arnaldo Carvalho de Melo
Browse files

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: default avatarDima Kogan <dima@secretsauce.net>
Acked-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Link: https://lore.kernel.org/r/20240416045533.162692-2-dima@secretsauce.net


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 03f23570
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment