]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: fix trivial typos in debugging output
authorPetr Uzel <petr.uzel@suse.cz>
Wed, 9 Nov 2011 09:10:52 +0000 (10:10 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 9 Nov 2011 09:23:59 +0000 (10:23 +0100)
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
libmount/src/cache.c
libmount/src/context.c
libmount/src/context_mount.c
libmount/src/context_umount.c
libmount/src/optstr.c
libmount/src/tab_update.c

index 41aa4fe2fea6f99b2587e5ee7ff0ab51c42a0d56..cf319ca25e88fb6ecb6bcbdb49e098aebbaad57b 100644 (file)
@@ -681,7 +681,7 @@ int test_read_tags(struct libmnt_test *ts, int argc, char *argv[])
 
                if (*line == '/') {
                        if (mnt_cache_read_tags(cache, line) < 0)
-                               fprintf(stderr, "%s: read tags faild\n", line);
+                               fprintf(stderr, "%s: read tags failed\n", line);
 
                } else if (strchr(line, '=')) {
                        char *tag, *val;
index 47d3f85ce3ac4588dc3b1866ebbcbf84ad520d1f..dadde5c892a7eed3c702236f880351f987e9a2f2 100644 (file)
@@ -1542,7 +1542,7 @@ int mnt_context_apply_fstab(struct libmnt_context *cxt)
 
        /* try mtab */
        if (rc < 0 && (cxt->optsmode & MNT_OMODE_MTAB)) {
-               DBG(CXT, mnt_debug_h(cxt, "tring to apply from mtab"));
+               DBG(CXT, mnt_debug_h(cxt, "trying to apply from mtab"));
                rc = mnt_context_get_mtab(cxt, &tab);
                if (!rc)
                        rc = apply_table(cxt, tab, MNT_ITER_BACKWARD);
index bcc4cdd12012bb4984a285b25003565808b650ef..7b4c0bae3b7f667df42cd20097c9f0d683e60d5b 100644 (file)
@@ -461,7 +461,7 @@ static int do_mount_by_pattern(struct libmnt_context *cxt, const char *pattern)
                 */
                char *p, *p0;
 
-               DBG(CXT, mnt_debug_h(cxt, "tring mount by FS pattern list"));
+               DBG(CXT, mnt_debug_h(cxt, "trying to mount by FS pattern list"));
 
                p0 = p = strdup(pattern);
                if (!p)
@@ -483,7 +483,7 @@ static int do_mount_by_pattern(struct libmnt_context *cxt, const char *pattern)
        /*
         * try /etc/filesystems and /proc/filesystems
         */
-       DBG(CXT, mnt_debug_h(cxt, "tring mount by filesystems lists"));
+       DBG(CXT, mnt_debug_h(cxt, "trying to mount by filesystems lists"));
 
        rc = mnt_get_filesystems(&filesystems, neg ? pattern : NULL);
        if (rc)
index dc417e3e00cb4d14057d956bf9d49e12927b368e..3486ef5432314a467da28303dd6810df7721fef5 100644 (file)
@@ -508,7 +508,7 @@ static int do_umount(struct libmnt_context *cxt)
                cxt->mountflags |= MS_REMOUNT | MS_RDONLY;
                cxt->flags &= ~MNT_FL_LOOPDEL;
                DBG(CXT, mnt_debug_h(cxt,
-                       "umount(2) failed [errno=%d] -- tring remount read-only",
+                       "umount(2) failed [errno=%d] -- trying to remount read-only",
                        -cxt->syscall_status));
 
                rc = mount(src, mnt_fs_get_target(cxt->fs), NULL,
index 2a0fc277eee933c160ee43a0560e723b1c0c8514..836838440e90482922c515e107e2a593a81aa1f0 100644 (file)
@@ -652,7 +652,7 @@ int mnt_optstr_apply_flags(char **optstr, unsigned long flags,
        if (!optstr || !map)
                return -EINVAL;
 
-       DBG(CXT, mnt_debug("appling 0x%08lu flags '%s'", flags, *optstr));
+       DBG(CXT, mnt_debug("applying 0x%08lu flags '%s'", flags, *optstr));
 
        maps[0] = map;
        next = *optstr;
index f049e42c06a34d3a4968aad229c51cd55c30e82b..e40868c0e03e347bee2ed745b198e71c40449f3b 100644 (file)
@@ -169,7 +169,7 @@ int mnt_update_set_fs(struct libmnt_update *upd, unsigned long mountflags,
                return -EINVAL;
 
        DBG(UPDATE, mnt_debug_h(upd,
-                       "reseting FS [fs=0x%p, target=%s, flags=0x%08lx]",
+                       "resetting FS [fs=0x%p, target=%s, flags=0x%08lx]",
                        fs, target, mountflags));
        if (fs) {
                DBG(UPDATE, mnt_debug_h(upd, "FS template:"));