projects
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c3200e
)
sleep: fix one more printf format of a fiemap field
author
Filipe Brandenburger
<filbranden@google.com>
Wed, 27 Jun 2018 16:19:33 +0000
(09:19 -0700)
committer
Peter Michael Green
<plugwash@raspbian.org>
Thu, 20 Sep 2018 20:22:45 +0000
(21:22 +0100)
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
ad4bc3352285f467f4ffa03c3171b19fa0a8758d
, so fix it
with this follow up.
(cherry picked from commit
d7af62d52cd3b58c5fe7d410e907e01fed71c02e
)
Gbp-Pq: Name sleep-fix-one-more-printf-format-of-a-fiemap-field.patch
src/test/test-sleep.c
patch
|
blob
|
history
diff --git
a/src/test/test-sleep.c
b/src/test/test-sleep.c
index acfcf6a630b032aedc63b4d72650708a04667c23..a8ad302f710089a1dba25dbe054c69181b2c5e98 100644
(file)
--- a/
src/test/test-sleep.c
+++ b/
src/test/test-sleep.c
@@
-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 extent count: %" PRIu32, fiemap->fm_extent_count);
if (fiemap->fm_extent_count > 0)
- log_info("\t first extent location: %
llu"
,
-
fiemap->fm_extents[0].fe_physical / page_size(
));
+ log_info("\t first extent location: %
" PRIu64
,
+
(uint64_t) (fiemap->fm_extents[0].fe_physical / page_size()
));
return 0;
}