Re: [PATCH] examples: Fix the wrong format specifier
From: Paolo Abeni
Date: Tue Aug 20 2024 - 10:45:47 EST
On 8/20/24 05:26, Zhu Jun wrote:
The format specifier of "unsigned int" in printf() should be "%u", not
"%d".
You must CC the netdev ML for network related patch.
The interface index is constraint by the kernel to be a signed integer,
(with non negative valid values), the '%d' format string is IMHO
actually correct.
Cheers,
Paolo