aboutgitcodebugslistschat
path: root/passt.1
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2023-03-10 23:15:35 +0100
committerStefano Brivio <sbrivio@redhat.com>2023-03-17 08:25:56 +0100
commit4e6178fd4660ae85f079e7f34f14525324e1f3ba (patch)
tree0339fb1b495f1a769b104ceb876cbf09ee0ad249 /passt.1
parent70c0765b49e19b76639908a7686d8f795ba3ed24 (diff)
downloadpasst-4e6178fd4660ae85f079e7f34f14525324e1f3ba.tar
passt-4e6178fd4660ae85f079e7f34f14525324e1f3ba.tar.gz
passt-4e6178fd4660ae85f079e7f34f14525324e1f3ba.tar.bz2
passt-4e6178fd4660ae85f079e7f34f14525324e1f3ba.tar.lz
passt-4e6178fd4660ae85f079e7f34f14525324e1f3ba.tar.xz
passt-4e6178fd4660ae85f079e7f34f14525324e1f3ba.tar.zst
passt-4e6178fd4660ae85f079e7f34f14525324e1f3ba.zip
log: Avoid time_t/__syscall_slong_t format mismatch with long int on X32 ABI
On X32 (ILP32 using AMD64 system call ABI) and glibc, struct timespec::tv_nsec is __syscall_slong_t and not a long int, see also https://sourceware.org/bugzilla/show_bug.cgi?id=16437 and timespec(3type). Fine, we could cast that down to long and be done with it. But it turns out that also time_t (not guaranteed to be equivalent to any type) is a long long int, and there we can't downcast. To keep it simple, cast both to long long int, and change formats to %lli, to avoid format warnings from gcc. Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'passt.1')
0 files changed, 0 insertions, 0 deletions