[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241213121855.GU2110@kernel.org>
Date: Fri, 13 Dec 2024 12:18:55 +0000
From: Simon Horman <horms@...nel.org>
To: Maximilian Güntner <code@...entner.de>
Cc: netdev@...r.kernel.org, David Ahern <dsahern@...nel.org>,
"David S. Miller" <davem@...emloft.net>
Subject: Re: [PATCH] ipv4: output metric as unsigned int
On Thu, Dec 12, 2024 at 05:19:11PM +0100, Maximilian Güntner wrote:
> adding a route metric greater than 0x7fff_ffff leads to an
> unintended wrap when printing the underlying u32 as an
> unsigned int (`%d`) thus incorrectly rendering the metric
> as negative. Formatting using `%u` corrects the issue.
>
> Signed-off-by: Maximilian Güntner <code@...entner.de>
Reviewed-by: Simon Horman <horms@...nel.org>
Powered by blists - more mailing lists