Re: [PATCH] kernel: events: Use scnprintf() in show_pmu_*() instead of snprintf()

From: Alexander Shishkin
Date: Wed Sep 09 2020 - 02:45:24 EST

Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx> writes:

> Since snprintf() returns would-be-output size instead of the actual
> output size, replace it with scnprintf(), so the nr_addr_filters_show(),
> type_show(), and perf_event_mux_interval_ms_show() routines return the
> actual size.

Well, firstly they should just be sprintf()s, and secondly, I wouldn't
worry about it, because [0].