Re: [PATCH] vsnprintf: drop __printf() attributes on binary printing functions
From: patchwork-bot+netdevbpf
Date: Wed Feb 11 2026 - 20:28:53 EST
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Petr Mladek <pmladek@xxxxxxxx>:
On Wed, 4 Feb 2026 14:26:23 +0100 you wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> The printf() format attributes are applied inconsistently for the binary
> printf helpers, which causes warnings for the bpf_trace code using
> them from functions that pass down format strings:
>
> kernel/trace/bpf_trace.c: In function '____bpf_trace_printk':
> kernel/trace/bpf_trace.c:377:9: error: function '____bpf_trace_printk' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
> 377 | ret = bstr_printf(data.buf, MAX_BPRINTF_BUF, fmt, data.bin_args);
> | ^~~
>
> [...]
Here is the summary with links:
- vsnprintf: drop __printf() attributes on binary printing functions
https://git.kernel.org/bpf/bpf-next/c/b07829d546c8
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html