Thread (31 messages) 31 messages, 4 authors, 17h ago

Re: [PATCH net-next v1 1/8] net: ieee8021q: print traffic type and queue count with %u

flat view

From: Linus Walleij <linusw@kernel.org>
Date: 2026-10-05 15:05:13
Also in: lkml

On Fri, Oct 2, 2026 at 1:58 PM Oleksij Rempel [off-list ref] wrote:
Switch the out-of-range diagnostic in ieee8021q_tt_to_tc() from %d to
%u. The traffic class count num_queues is an unsigned int and the
traffic type is an enumeration, so printing them as unsigned matches
their types. The print sits on the range-check error path, which still
rejects a negative traffic type; %u only changes how an out-of-range
value is rendered, not which values are rejected.

Preparation for the inverse helper added next, which follows the same
convention.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Linus Walleij <linusw@kernel.org>

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help