mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: use more common FMTd64 type
We use 'd' for plain singed integers.
This commit is contained in:
parent
78d004efa8
commit
e3a3cf01eb
2
lib/cache/lvmetad.c
vendored
2
lib/cache/lvmetad.c
vendored
@ -66,7 +66,7 @@ static int _log_debug_inequality(const char *name, struct dm_config_node *a, str
|
|||||||
log_debug_lvmetad("VG %s metadata inequality at %s / %s: %s / %s",
|
log_debug_lvmetad("VG %s metadata inequality at %s / %s: %s / %s",
|
||||||
name, a->key, b->key, av->v.str, bv->v.str);
|
name, a->key, b->key, av->v.str, bv->v.str);
|
||||||
else if (a->v->type == DM_CFG_INT && b->v->type == DM_CFG_INT)
|
else if (a->v->type == DM_CFG_INT && b->v->type == DM_CFG_INT)
|
||||||
log_debug_lvmetad("VG %s metadata inequality at %s / %s: " FMTi64 " / " FMTi64,
|
log_debug_lvmetad("VG %s metadata inequality at %s / %s: " FMTd64 " / " FMTd64,
|
||||||
name, a->key, b->key, av->v.i, bv->v.i);
|
name, a->key, b->key, av->v.i, bv->v.i);
|
||||||
else
|
else
|
||||||
log_debug_lvmetad("VG %s metadata inequality at %s / %s: type %d / type %d",
|
log_debug_lvmetad("VG %s metadata inequality at %s / %s: type %d / type %d",
|
||||||
|
@ -680,8 +680,8 @@ static void _check_group_regions_present(struct dm_stats *dms,
|
|||||||
|
|
||||||
for (; i > 0; i = dm_bit_get_next(regions, i))
|
for (; i > 0; i = dm_bit_get_next(regions, i))
|
||||||
if (!_stats_region_present(&dms->regions[i])) {
|
if (!_stats_region_present(&dms->regions[i])) {
|
||||||
log_warn("Group descriptor " FMTi64 " contains "
|
log_warn("Group descriptor " FMTd64 " contains "
|
||||||
"non-existent region_id " FMTi64 ".",
|
"non-existent region_id " FMTd64 ".",
|
||||||
group_id, i);
|
group_id, i);
|
||||||
dm_bit_clear(regions, i);
|
dm_bit_clear(regions, i);
|
||||||
}
|
}
|
||||||
@ -4563,7 +4563,7 @@ static int _stats_unmap_regions(struct dm_stats *dms, uint64_t group_id,
|
|||||||
log_error("Could not finalize region extent table.");
|
log_error("Could not finalize region extent table.");
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
log_very_verbose("Kept " FMTi64 " of " FMTi64 " old extents",
|
log_very_verbose("Kept " FMTd64 " of " FMTd64 " old extents",
|
||||||
nr_kept, nr_old);
|
nr_kept, nr_old);
|
||||||
log_very_verbose("Found " FMTu64 " new extents",
|
log_very_verbose("Found " FMTu64 " new extents",
|
||||||
*count - nr_kept);
|
*count - nr_kept);
|
||||||
|
@ -689,7 +689,7 @@ static int _do_usleep_wait(void)
|
|||||||
} else {
|
} else {
|
||||||
dm_timestamp_get(_now);
|
dm_timestamp_get(_now);
|
||||||
delta_t = dm_timestamp_delta(_now, _start_timestamp);
|
delta_t = dm_timestamp_delta(_now, _start_timestamp);
|
||||||
log_debug("Interval timer drift: "FMTi64,
|
log_debug("Interval timer drift: "FMTd64,
|
||||||
(delta_t % _interval));
|
(delta_t % _interval));
|
||||||
|
|
||||||
/* FIXME: usleep timer drift over large counts. */
|
/* FIXME: usleep timer drift over large counts. */
|
||||||
|
@ -130,7 +130,7 @@ static int _lvmetad_clear_dev(dev_t devno, int32_t major, int32_t minor)
|
|||||||
{
|
{
|
||||||
char buf[24];
|
char buf[24];
|
||||||
|
|
||||||
(void) dm_snprintf(buf, sizeof(buf), FMTi32 ":" FMTi32, major, minor);
|
(void) dm_snprintf(buf, sizeof(buf), FMTd32 ":" FMTd32, major, minor);
|
||||||
|
|
||||||
if (!lvmetad_pv_gone(devno, buf))
|
if (!lvmetad_pv_gone(devno, buf))
|
||||||
return_0;
|
return_0;
|
||||||
|
Loading…
Reference in New Issue
Block a user