mirror of
https://github.com/systemd/systemd.git
synced 2025-08-31 09:49:54 +03:00
sleep: fix one more printf format of a fiemap field
Use PRIu64 constant to get the format right on LP-64 architectures,
cast to (uint64_t) to solve incompatibility of __u64.
This was missed in ad4bc33522
, so fix it
with this follow up.
This commit is contained in:
committed by
Yu Watanabe
parent
358248caa3
commit
d7af62d52c
@ -39,8 +39,8 @@ static int test_fiemap(const char *path) {
|
|||||||
log_info("\t number of mapped extents: %" PRIu32, fiemap->fm_mapped_extents);
|
log_info("\t number of mapped extents: %" PRIu32, fiemap->fm_mapped_extents);
|
||||||
log_info("\t extent count: %" PRIu32, fiemap->fm_extent_count);
|
log_info("\t extent count: %" PRIu32, fiemap->fm_extent_count);
|
||||||
if (fiemap->fm_extent_count > 0)
|
if (fiemap->fm_extent_count > 0)
|
||||||
log_info("\t first extent location: %llu",
|
log_info("\t first extent location: %" PRIu64,
|
||||||
fiemap->fm_extents[0].fe_physical / page_size());
|
(uint64_t) (fiemap->fm_extents[0].fe_physical / page_size()));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user