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 22:47:19 +0000 (23:47 +0100)
commitb4bed214df1fab5edabe0410ea3d91ba15f11b9e
tree9cefd286f133e70d0fde328e1ed54d6f22ef8da6
parent871244f66051698dd959076368f0e752fdd3bf83
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