Re: [PATCH net] net: vlan: fix vlan name truncation

From: Janis Edvarts Lacis

Date: Fri Sep 11 2026 - 12:42:51 EST


On Thu, Sep 10, 2026 at 10:56 AM, Paolo Abeni wrote:
> I'm sorry, but I don't think we can accept this patch: this change an
> user-space visible behavior: ...

Okay, I see the issue. How about a 'solution' like this: we use scnprintf()
instead of snprintf() in two branches that can have the name truncated? From
what I see, the only difference between snprintf() and scnprintf() is the
return value so there should be no functional change visible to the user. I
tested the W=1 build, the warning is gone if scnprintf() is used.