Thread (21 messages) 21 messages, 4 authors, 2d ago

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

flat view

From: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Date: 2026-10-02 14:23:05
Also in: lkml

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: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help