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>
Sat, 17 Nov 2018 17:39:21 +0000 (17:39 +0000)
commit11a9a8085bf111a04313e9b2cfce3dc069a40629
treeb26e756d50aa92baad292a1c3f6cdbda5331f38e
parentc413c99ee170a8c7285920ded4fe831c2988c9bf
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