1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-30 17:18:21 +03:00

libdm: trace missing settings

These settings have been missed in very verbose log.
This commit is contained in:
Zdenek Kabelac 2016-05-18 15:23:08 +02:00
parent e8ba5c9bd4
commit 8fd886f735
2 changed files with 13 additions and 3 deletions

View File

@ -12,6 +12,7 @@ Version 1.02.124 - 30th April 2016
Version 1.02.123 - 23rd April 2016
==================================
Trace more settings in very verbose mode for libdm-config.
Do not strip LVM- when debug reporting not found uuid.
Version 1.02.122 - 9th April 2016

View File

@ -1154,8 +1154,11 @@ int dm_config_get_uint32(const struct dm_config_node *cn, const char *path,
if (!n || !n->v || n->v->type != DM_CFG_INT)
return 0;
if (result)
if (result) {
log_very_verbose("Setting %s to %u", path, (uint32_t) n->v->v.i);
*result = n->v->v.i;
}
return 1;
}
@ -1169,8 +1172,11 @@ int dm_config_get_uint64(const struct dm_config_node *cn, const char *path,
if (!n || !n->v || n->v->type != DM_CFG_INT)
return 0;
if (result)
if (result) {
log_very_verbose("Setting %s to " FMTu64 , path, (uint64_t) n->v->v.i);
*result = (uint64_t) n->v->v.i;
}
return 1;
}
@ -1184,8 +1190,11 @@ int dm_config_get_str(const struct dm_config_node *cn, const char *path,
if (!n || !n->v || n->v->type != DM_CFG_STRING)
return 0;
if (result)
if (result) {
log_very_verbose("Setting %s to %s", path, n->v->v.str);
*result = n->v->v.str;
}
return 1;
}