util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] libmount: fix trivial typos in debugging output
@ 2011-11-09  9:10 Petr Uzel
  2011-11-09  9:24 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Petr Uzel @ 2011-11-09  9:10 UTC (permalink / raw)
  To: util-linux

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
---
 libmount/src/cache.c          |    2 +-
 libmount/src/context.c        |    2 +-
 libmount/src/context_mount.c  |    4 ++--
 libmount/src/context_umount.c |    2 +-
 libmount/src/optstr.c         |    2 +-
 libmount/src/tab_update.c     |    2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/libmount/src/cache.c b/libmount/src/cache.c
index 41aa4fe..cf319ca 100644
--- a/libmount/src/cache.c
+++ b/libmount/src/cache.c
@@ -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;
diff --git a/libmount/src/context.c b/libmount/src/context.c
index 47d3f85..dadde5c 100644
--- a/libmount/src/context.c
+++ b/libmount/src/context.c
@@ -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);
diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c
index bcc4cdd..7b4c0ba 100644
--- a/libmount/src/context_mount.c
+++ b/libmount/src/context_mount.c
@@ -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)
diff --git a/libmount/src/context_umount.c b/libmount/src/context_umount.c
index dc417e3..3486ef5 100644
--- a/libmount/src/context_umount.c
+++ b/libmount/src/context_umount.c
@@ -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,
diff --git a/libmount/src/optstr.c b/libmount/src/optstr.c
index 2a0fc27..8368384 100644
--- a/libmount/src/optstr.c
+++ b/libmount/src/optstr.c
@@ -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;
diff --git a/libmount/src/tab_update.c b/libmount/src/tab_update.c
index f049e42..e40868c 100644
--- a/libmount/src/tab_update.c
+++ b/libmount/src/tab_update.c
@@ -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:"));
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] libmount: fix trivial typos in debugging output
  2011-11-09  9:10 [PATCH] libmount: fix trivial typos in debugging output Petr Uzel
@ 2011-11-09  9:24 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2011-11-09  9:24 UTC (permalink / raw)
  To: Petr Uzel; +Cc: util-linux

On Wed, Nov 09, 2011 at 10:10:52AM +0100, Petr Uzel wrote:
> Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
> ---
>  libmount/src/cache.c          |    2 +-
>  libmount/src/context.c        |    2 +-
>  libmount/src/context_mount.c  |    4 ++--
>  libmount/src/context_umount.c |    2 +-
>  libmount/src/optstr.c         |    2 +-
>  libmount/src/tab_update.c     |    2 +-
>  6 files changed, 7 insertions(+), 7 deletions(-)

 Applied, thanks.

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-09  9:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-09  9:10 [PATCH] libmount: fix trivial typos in debugging output Petr Uzel
2011-11-09  9:24 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).