summaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorMaximilian Güntner <code@mguentner.de>2024-12-12 17:19:11 +0100
committerJakub Kicinski <kuba@kernel.org>2024-12-15 13:13:40 -0800
commit329365dc46b8cedb9c4fd5cfb80b29cb85b84c39 (patch)
tree78dd7f28814da7d0f3dede4a353c443be32da2e8 /net/unix/sysctl_net_unix.c
parentab2cedb0d4fcecba6d241ad1bdc674a0af625641 (diff)
ipv4: output metric as unsigned int
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@mguentner.de> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20241212161911.51598-1-code@mguentner.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions