summaryrefslogtreecommitdiffstats
path: root/arch/x86/events/intel/ds.c
diff options
context:
space:
mode:
authorJules Irenge <jbi.octave@gmail.com>2022-09-18 01:41:08 +0200
committerIngo Molnar <mingo@kernel.org>2022-09-21 12:34:36 +0200
commitdca6344d7a77dd0501a73745f4a9fb1ee2bc9d7c (patch)
treeac8736af2ea163dd11ad5e27f4f6b3884c9ac040 /arch/x86/events/intel/ds.c
parentperf: Kill __PERF_SAMPLE_CALLCHAIN_EARLY (diff)
downloadlinux-dca6344d7a77dd0501a73745f4a9fb1ee2bc9d7c.tar.xz
linux-dca6344d7a77dd0501a73745f4a9fb1ee2bc9d7c.zip
perf/core: Convert snprintf() to scnprintf()
Coccinelle reports a warning: WARNING: use scnprintf or sprintf This LWN article explains the rationale for this change: https: //lwn.net/Articles/69419/ Ie. snprintf() returns what *would* be the resulting length, while scnprintf() returns the actual length. Adding to that, there has also been some slow migration from snprintf to scnprintf, here's the shift in usage in the past 3.5 years, in all fs/ files: v5.0 v6.0-rc6 -------------------------------------- snprintf() uses: 63 213 scnprintf() uses: 374 186 No intended change in behavior. [ mingo: Improved the changelog & reviewed the usage sites. ] Signed-off-by: Jules Irenge <jbi.octave@gmail.com> Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/events/intel/ds.c')
0 files changed, 0 insertions, 0 deletions