From: Karel Zak Date: Wed, 1 Jun 2022 13:21:55 +0000 (+0200) Subject: libmount: improve debug messages X-Git-Tag: v2.39-rc1~336 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=192bb3409f71bb5e8739d9e4beadcf281c8fd698;p=thirdparty%2Futil-linux.git libmount: improve debug messages Signed-off-by: Karel Zak --- diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c index 74cbc0452a..32563a8e37 100644 --- a/libmount/src/context_mount.c +++ b/libmount/src/context_mount.c @@ -91,9 +91,11 @@ static int fix_optstr(struct libmnt_context *cxt) if (!cxt->fs || (cxt->flags & MNT_FL_MOUNTOPTS_FIXED)) return 0; + DBG(CXT, ul_debugobj(cxt, "-->: preparing mount options")); + fs = cxt->fs; - DBG(CXT, ul_debugobj(cxt, "mount: fixing options, current " + DBG(CXT, ul_debugobj(cxt, " current options" "vfs: '%s' fs: '%s' user: '%s', optstr: '%s'", fs->vfs_optstr, fs->fs_optstr, fs->user_optstr, fs->optstr)); @@ -118,13 +120,13 @@ static int fix_optstr(struct libmnt_context *cxt) /* * Sync mount options with mount flags */ - DBG(CXT, ul_debugobj(cxt, "mount: fixing vfs optstr")); + DBG(CXT, ul_debugobj(cxt, " fixing vfs optstr")); rc = mnt_optstr_apply_flags(&fs->vfs_optstr, cxt->mountflags, mnt_get_builtin_optmap(MNT_LINUX_MAP)); if (rc) goto done; - DBG(CXT, ul_debugobj(cxt, "mount: fixing user optstr")); + DBG(CXT, ul_debugobj(cxt, " fixing user optstr")); rc = mnt_optstr_apply_flags(&fs->user_optstr, cxt->user_mountflags, mnt_get_builtin_optmap(MNT_USERSPACE_MAP)); if (rc) @@ -228,7 +230,7 @@ static int fix_optstr(struct libmnt_context *cxt) done: cxt->flags |= MNT_FL_MOUNTOPTS_FIXED; - DBG(CXT, ul_debugobj(cxt, "fixed options [rc=%d]: " + DBG(CXT, ul_debugobj(cxt, " fixed options [rc=%d]: " "vfs: '%s' fs: '%s' user: '%s', optstr: '%s'", rc, fs->vfs_optstr, fs->fs_optstr, fs->user_optstr, fs->optstr));