summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorMaximilian Güntner <code@mguentner.de>2024-12-12 19:19:11 +0300
committerJakub Kicinski <kuba@kernel.org>2024-12-16 00:13:40 +0300
commit329365dc46b8cedb9c4fd5cfb80b29cb85b84c39 (patch)
tree78dd7f28814da7d0f3dede4a353c443be32da2e8 /tools/perf/scripts/python/check-perf-trace.py
parentab2cedb0d4fcecba6d241ad1bdc674a0af625641 (diff)
downloadlinux-329365dc46b8cedb9c4fd5cfb80b29cb85b84c39.tar.xz
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 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions