]> git.ipfire.org Git - thirdparty/systemd.git/commit
sleep: fix printf format of fiemap fields
authorFilipe Brandenburger <filbranden@google.com>
Tue, 26 Jun 2018 16:43:49 +0000 (09:43 -0700)
committerLennart Poettering <lennart@poettering.net>
Tue, 26 Jun 2018 18:39:07 +0000 (20:39 +0200)
commitad4bc3352285f467f4ffa03c3171b19fa0a8758d
tree5cb1c3790fdd07997a7f31ebcde82f548c1ba4ee
parenta7e9daf40c87c078b18d8499d18e16c27a584f2f
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.
src/test/test-sleep.c