summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/tab_parse.c
diff options
context:
space:
mode:
authorKarel Zak2011-04-27 17:17:16 +0200
committerKarel Zak2011-04-27 17:17:16 +0200
commit0983b5f7e67c23c553d7c14ac8d1788b1dc19890 (patch)
tree34bc64d782070609c4d98a3328a6c1acfb39bbce /shlibs/mount/src/tab_parse.c
parentlib: [tt.c] support fixed width and multiple tt_print_table() calls (diff)
downloadkernel-qcow2-util-linux-0983b5f7e67c23c553d7c14ac8d1788b1dc19890.tar.gz
kernel-qcow2-util-linux-0983b5f7e67c23c553d7c14ac8d1788b1dc19890.tar.xz
kernel-qcow2-util-linux-0983b5f7e67c23c553d7c14ac8d1788b1dc19890.zip
libmount: minor fix to mnt_tabdiff_*
- tabdiff has to support NULL fs->source - disable some debug messages Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/tab_parse.c')
-rw-r--r--shlibs/mount/src/tab_parse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/shlibs/mount/src/tab_parse.c b/shlibs/mount/src/tab_parse.c
index be85d4711..7419f3742 100644
--- a/shlibs/mount/src/tab_parse.c
+++ b/shlibs/mount/src/tab_parse.c
@@ -360,7 +360,8 @@ int mnt_table_parse_stream(struct libmnt_table *tb, FILE *f, const char *filenam
assert(f);
assert(filename);
- DBG(TAB, mnt_debug_h(tb, "%s: start parsing", filename));
+ DBG(TAB, mnt_debug_h(tb, "%s: start parsing (%d entries)",
+ filename, mnt_table_get_nents(tb)));
/* necessary for /proc/mounts only, the /proc/self/mountinfo
* parser sets the flag properly
@@ -389,7 +390,8 @@ int mnt_table_parse_stream(struct libmnt_table *tb, FILE *f, const char *filenam
}
}
- DBG(TAB, mnt_debug_h(tb, "%s: stop parsing", filename));
+ DBG(TAB, mnt_debug_h(tb, "%s: stop parsing (%d entries)",
+ filename, mnt_table_get_nents(tb)));
return 0;
err:
DBG(TAB, mnt_debug_h(tb, "%s: parse error (rc=%d)", filename, rc));