diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2023-11-29 13:20:18 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-12-02 03:54:47 +0100 |
commit | 7e175f32c1213bc4d86b039059164dcb1c4ed2e5 (patch) | |
tree | 7ae7f6fb723002c532963553a13d6f85aa195545 /flow.h | |
parent | 06559048e76343211618ddea02d6739ca578b775 (diff) | |
download | passt-7e175f32c1213bc4d86b039059164dcb1c4ed2e5.tar passt-7e175f32c1213bc4d86b039059164dcb1c4ed2e5.tar.gz passt-7e175f32c1213bc4d86b039059164dcb1c4ed2e5.tar.bz2 passt-7e175f32c1213bc4d86b039059164dcb1c4ed2e5.tar.lz passt-7e175f32c1213bc4d86b039059164dcb1c4ed2e5.tar.xz passt-7e175f32c1213bc4d86b039059164dcb1c4ed2e5.tar.zst passt-7e175f32c1213bc4d86b039059164dcb1c4ed2e5.zip |
packet: Offset plus length is not always uint32_t, but it's always size_t
According to gcc, PRIu32 matches the type of the argument we're
printing here on both 64 and 32-bits architectures. According to
Clang, though, that's not the case, as the result of the sum is an
unsigned long on 64-bit.
Use the z modifier, given that we're summing uint32_t to size_t, and
the result is at most promoted to size_t.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'flow.h')
0 files changed, 0 insertions, 0 deletions