]> sourceware.org Git - lvm2.git/commitdiff
libdm: trace missing settings
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 18 May 2016 13:23:08 +0000 (15:23 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 19 May 2016 16:27:34 +0000 (18:27 +0200)
These settings have been missed in very verbose log.

WHATS_NEW_DM
libdm/libdm-config.c

index d4469970c91e58c6bfc1c38ed821a7db238312f5..165cb90ad852dff47d54c57452ae89185c9c7a71 100644 (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
index dcb7c3f81a7cf7cd084381cc47c171af5bae08b1..86955c51d01ff67f9e77f058ec7911f79f9f1633 100644 (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;
 }
 
This page took 0.036945 seconds and 5 git commands to generate.