Re: [PATCH 1/2] tracing: work around -Wmissing-format-attribute warning

From: Steven Rostedt

Date: Tue Jun 02 2026 - 11:43:33 EST


On Tue, 2 Jun 2026 17:07:05 +0200
Arnd Bergmann <arnd@xxxxxxxxxx> wrote:

> @@ -2979,6 +2975,12 @@ int vsnprintf(char *buf, size_t size, const char *fmt_str, va_list args)
> }
> EXPORT_SYMBOL(vsnprintf);
>

Should add a comment here for why this is needed.

-- Steve

> +int __printf(3, 0) __vsnprintf(char *buf, size_t size, const char *fmt_str, va_list args)
> +{
> + return vsnprintf(buf, size, fmt_str, args);
> +}
> +EXPORT_SYMBOL(__vsnprintf);
> +