]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: fix debug message
authorKarel Zak <kzak@redhat.com>
Fri, 26 Aug 2011 08:49:38 +0000 (10:49 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 26 Aug 2011 08:49:38 +0000 (10:49 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/tab_parse.c

index 37ab4466d2363f12ae542e0520111a6a3f2bc1e3..dba60028ab28ab0bc5f73ca6674b69f2b7661026 100644 (file)
@@ -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().