sleep: fix printf format of fiemap fields
authorFilipe Brandenburger <filbranden@google.com>
Tue, 26 Jun 2018 16:43:49 +0000 (09:43 -0700)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 20 Sep 2018 20:22:45 +0000 (21:22 +0100)
commite55304057d60819af9d4cd53ebc9a248a715414b
treed3b6d4c74a316a1c4927a35bc8b8f7de215237e7
parentc6aa02589a518ced754f1c8015cbd0367fede655
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