From e8d5e05ff57a327053f140f2fed4c12f8fe7e076 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Thu, 30 Mar 2017 10:31:36 +0100 Subject: [PATCH] libdm: fix incorrect format specifier in _stats_resize_group() The bitmap size in dm_bitset_t[0] is a uint32_t, not uint64_t: use %u instead of FMTu64. --- libdm/libdm-stats.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libdm/libdm-stats.c b/libdm/libdm-stats.c index b69302f3c..78aa5666a 100644 --- a/libdm/libdm-stats.c +++ b/libdm/libdm-stats.c @@ -4193,9 +4193,9 @@ static int _stats_resize_group(struct dm_stats_group *group, return 0; } - log_very_verbose("Resizing group bitmap from " FMTu64 - " to " FMTu64 " (last_bit: " FMTu64 ").", - group->regions[0], num_regions, last_bit); + log_very_verbose("Resizing group bitmap from %u to " FMTu64 + " (last_bit: " FMTu64 ").", group->regions[0], + num_regions, last_bit); new = dm_bitset_create(NULL, (unsigned) num_regions); if (!new) {