]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: report context paths on debug
authorKarel Zak <kzak@redhat.com>
Tue, 14 Aug 2018 19:03:42 +0000 (21:03 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 14 Aug 2018 19:03:42 +0000 (21:03 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context.c

index d948b12043be18e19b11452a00e3ad6f62eb34ee..ac3daaf4e0047b962ba447e16741daf89e85efb3 100644 (file)
@@ -218,11 +218,15 @@ static int context_init_paths(struct libmnt_context *cxt, int writable)
        assert(cxt);
 
 #ifdef USE_LIBMOUNT_SUPPORT_MTAB
-       if (!cxt->mtab_path)
+       if (!cxt->mtab_path) {
                cxt->mtab_path = mnt_get_mtab_path();
+               DBG(CXT, ul_debugobj(cxt, "mtab path initialized to: %s", cxt->mtab_path));
+       }
 #endif
-       if (!cxt->utab_path)
+       if (!cxt->utab_path) {
                cxt->utab_path = mnt_get_utab_path();
+               DBG(CXT, ul_debugobj(cxt, "utab path initialized to: %s", cxt->utab_path));
+       }
 
        if (!writable)
                return 0;               /* only paths wanted */