sleep: fix printf format of fiemap fields
authorFilipe Brandenburger <filbranden@google.com>
Tue, 26 Jun 2018 16:43:49 +0000 (09:43 -0700)
committerMichael Biebl <biebl@debian.org>
Wed, 12 Sep 2018 17:07:38 +0000 (18:07 +0100)
commite5b1a2755dcd22180d0b67067f17e0b9ff5986cf
tree7e457e5ae34fd098fca71009b5f35b641a912a78
parent131548bf0712ffae00888a7c981359580c55dc3b
sleep: fix printf format of fiemap fields

Use PRIu64 and PRIu32 constants to also get the format right on LP-64
architectures.

For the 64-bit fields, we need a cast to (uint64_t), since __u64 is
defined as a `long long unsigned` and PRIu64 expects a `long unsigned`.
In practice, both are the same, so the cast should be OK.

(cherry picked from commit ad4bc3352285f467f4ffa03c3171b19fa0a8758d)

Gbp-Pq: Name sleep-fix-printf-format-of-fiemap-fields.patch
src/test/test-sleep.c