From 9be1607fa340f222a23e193ee91ed894ebf49c32 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 15 Nov 2012 15:35:24 +0100 Subject: libmount: more robust tab filter usage Signed-off-by: Karel Zak --- libmount/src/tab_parse.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libmount/src/tab_parse.c') diff --git a/libmount/src/tab_parse.c b/libmount/src/tab_parse.c index ad8832064..8a9d7349e 100644 --- a/libmount/src/tab_parse.c +++ b/libmount/src/tab_parse.c @@ -508,8 +508,9 @@ 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 (%d entries)", - filename, mnt_table_get_nents(tb))); + DBG(TAB, mnt_debug_h(tb, "%s: start parsing [entries=%d, filter=%s]", + filename, mnt_table_get_nents(tb), + tb->fltrcb ? "yes" : "not")); /* necessary for /proc/mounts only, the /proc/self/mountinfo * parser sets the flag properly -- cgit v1.2.3-55-g7522