summaryrefslogtreecommitdiffstats
path: root/libmount/src/tab_parse.c
diff options
context:
space:
mode:
authorKarel Zak2011-08-26 10:49:38 +0200
committerKarel Zak2011-08-26 10:49:38 +0200
commit581a4ad92a7077ef92e9ed58e1ae8bbd2939767e (patch)
tree92c2dc6d1a5184c974aac8825b41edc36375c8f3 /libmount/src/tab_parse.c
parentsfdisk: make some tests conditional to !Linux (diff)
downloadkernel-qcow2-util-linux-581a4ad92a7077ef92e9ed58e1ae8bbd2939767e.tar.gz
kernel-qcow2-util-linux-581a4ad92a7077ef92e9ed58e1ae8bbd2939767e.tar.xz
kernel-qcow2-util-linux-581a4ad92a7077ef92e9ed58e1ae8bbd2939767e.zip
libmount: fix debug message
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/tab_parse.c')
-rw-r--r--libmount/src/tab_parse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libmount/src/tab_parse.c b/libmount/src/tab_parse.c
index 37ab4466d..dba60028a 100644
--- a/libmount/src/tab_parse.c
+++ b/libmount/src/tab_parse.c
@@ -257,7 +257,8 @@ static int guess_table_format(char *line)
if (sscanf(line, "%u %u", &a, &b) == 2)
return MNT_FMT_MOUNTINFO;
- return MNT_FMT_FSTAB;
+
+ return MNT_FMT_FSTAB; /* fstab, mtab or /proc/mounts */
}
/*
@@ -322,7 +323,7 @@ static int mnt_table_parse_next(struct libmnt_table *tb, FILE *f, struct libmnt_
err:
DBG(TAB, mnt_debug_h(tb, "%s:%d: %s parse error", filename, *nlines,
tb->fmt == MNT_FMT_MOUNTINFO ? "mountinfo" :
- tb->fmt == MNT_FMT_FSTAB ? "fstab" : "utab"));
+ tb->fmt == MNT_FMT_FSTAB ? "tab" : "utab"));
/* by default all errors are recoverable, otherwise behavior depends on
* errcb() function. See mnt_table_set_parser_errcb().