diff options
author | Karel Zak | 2010-01-13 22:08:16 +0100 |
---|---|---|
committer | Karel Zak | 2010-06-03 15:20:11 +0200 |
commit | 6bd8b7a79dffb532ae8639e563f75005a10bc41d (patch) | |
tree | 470fe4db5d45f28e2f5c49db4388d315f39e5b61 /shlibs/mount/src/cache.c | |
parent | libmount: rename mnt_optls_iterate_options() (diff) | |
download | kernel-qcow2-util-linux-6bd8b7a79dffb532ae8639e563f75005a10bc41d.tar.gz kernel-qcow2-util-linux-6bd8b7a79dffb532ae8639e563f75005a10bc41d.tar.xz kernel-qcow2-util-linux-6bd8b7a79dffb532ae8639e563f75005a10bc41d.zip |
libmount: add fstab/mtab/mountinfo parsing routines
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/cache.c')
-rw-r--r-- | shlibs/mount/src/cache.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/shlibs/mount/src/cache.c b/shlibs/mount/src/cache.c index 7b9040ff8..18cf9fad2 100644 --- a/shlibs/mount/src/cache.c +++ b/shlibs/mount/src/cache.c @@ -112,9 +112,6 @@ static int mnt_cache_add_entry(mnt_cache *cache, char *native, e->flag = flag; cache->nents++; - DBG(DEBUG_CACHE, - printf("cache: [%zd entry] added %s\n", cache->nents, real)); - return 0; } @@ -146,6 +143,8 @@ static int mnt_cache_add_tag(mnt_cache *cache, const char *token, if (mnt_cache_add_entry(cache, native, real, flag)) goto error; + DBG(DEBUG_CACHE, + printf("cache: added %s: %s=%s\n", real, token, value)); return 0; error: free(native); @@ -237,6 +236,9 @@ int mnt_cache_read_tags(mnt_cache *cache, const char *devname) if (!cache || !devname) return -1; + + DBG(DEBUG_CACHE, printf("cache: tags for %s requested\n", devname)); + /* check is device is already cached */ for (i = 0; i < cache->nents; i++) { struct mnt_cache_entry *e = &cache->ents[i]; @@ -352,7 +354,7 @@ char *mnt_resolve_path(const char *path, mnt_cache *cache) } } - DBG(DEBUG_CACHE, printf("cache: %s --> %s\n", path, p)); + DBG(DEBUG_CACHE, printf("cache: added %s: %s\n", path, p)); return p; error: if (real != native) |