From 20aae9d352cb15b82625e88b4ad5cdea3f683f72 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 8 Apr 2010 15:01:12 +0200 Subject: [PATCH] libmount: add new debug messages Signed-off-by: Karel Zak --- shlibs/mount/src/tab.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/shlibs/mount/src/tab.c b/shlibs/mount/src/tab.c index 176a7d5a..819b11d3 100644 --- a/shlibs/mount/src/tab.c +++ b/shlibs/mount/src/tab.c @@ -228,6 +228,9 @@ int mnt_tab_get_root_fs(mnt_tab *tb, mnt_fs **root) if (!tb || !root) return -1; + DBG(DEBUG_TAB, fprintf(stderr, + "libmount: %s: lookup root fs\n", tb->filename)); + mnt_reset_iter(&itr, MNT_ITER_FORWARD); while(mnt_tab_next_fs(tb, &itr, &fs) == 0) { int id = mnt_fs_get_parent_id(fs); @@ -263,6 +266,10 @@ int mnt_tab_next_child_fs(mnt_tab *tb, mnt_iter *itr, if (!tb || !itr || !parent) return -1; + DBG(DEBUG_TAB, fprintf(stderr, + "libmount: %s: lookup next child of %s\n", + tb->filename, mnt_fs_get_target(parent))); + parent_id = mnt_fs_get_id(parent); if (!parent_id) return -1; @@ -366,6 +373,9 @@ int mnt_tab_find_next_fs(mnt_tab *tb, mnt_iter *itr, if (!tb || !itr || !fs || !match_func) return -1; + DBG(DEBUG_TAB, fprintf(stderr, + "libmount: %s: lookup next fs\n", tb->filename)); + if (!itr->head) MNT_ITER_INIT(itr, &tb->ents); -- 2.39.5