Re: [PATCH net-next] devlink: Replace strlcat() with seq_buf
From: Jakub Kicinski
Date: Mon Jul 20 2026 - 19:48:25 EST
On Fri, 3 Jul 2026 22:49:08 -0500 Ian Bridges wrote:
> In preparation for removing the strlcat() API[1], replace its uses in
> __devlink_compat_running_version().
>
> The function accumulates a variable number of version strings into a
> fixed buffer, which is what seq_buf is for. The seq_buf is anchored at
> the end of any existing string in the buffer and each version string
> is appended with a single seq_buf_printf(). The output is unchanged,
> including under truncation.
>
> Link: https://github.com/KSPP/linux/issues/370 [1]
It's fine.