From 581a4ad92a7077ef92e9ed58e1ae8bbd2939767e Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 26 Aug 2011 10:49:38 +0200 Subject: [PATCH] libmount: fix debug message Signed-off-by: Karel Zak --- libmount/src/tab_parse.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libmount/src/tab_parse.c b/libmount/src/tab_parse.c index 37ab4466d2..dba60028ab 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(). -- 2.47.3