diff options
author | Karel Zak | 2016-05-25 15:06:22 +0200 |
---|---|---|
committer | Karel Zak | 2016-05-25 15:06:22 +0200 |
commit | 14308bc3f2a66c2f960c12fe831195aa997ca1cb (patch) | |
tree | fba7c71692f7278ff8d3a2fb6e4b2603a76ed1ae /libblkid/src/dev.c | |
parent | build-sys: add missing include/plymouth-ctrl.h (diff) | |
download | kernel-qcow2-util-linux-14308bc3f2a66c2f960c12fe831195aa997ca1cb.tar.gz kernel-qcow2-util-linux-14308bc3f2a66c2f960c12fe831195aa997ca1cb.tar.xz kernel-qcow2-util-linux-14308bc3f2a66c2f960c12fe831195aa997ca1cb.zip |
libblkid: improve debug messages
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libblkid/src/dev.c')
-rw-r--r-- | libblkid/src/dev.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libblkid/src/dev.c b/libblkid/src/dev.c index 8e5516bce..f35895da9 100644 --- a/libblkid/src/dev.c +++ b/libblkid/src/dev.c @@ -37,6 +37,7 @@ blkid_dev blkid_new_dev(void) if (!(dev = calloc(1, sizeof(struct blkid_struct_dev)))) return NULL; + DBG(DEV, ul_debugobj(dev, "alloc")); INIT_LIST_HEAD(&dev->bid_devs); INIT_LIST_HEAD(&dev->bid_tags); @@ -48,10 +49,7 @@ void blkid_free_dev(blkid_dev dev) if (!dev) return; - DBG(DEV, - ul_debug(" freeing dev %s (%s)", dev->bid_name, dev->bid_type ? - dev->bid_type : "(null)")); - DBG(DEV, blkid_debug_dump_dev(dev)); + DBG(DEV, ul_debugobj(dev, "freeing (%s)", dev->bid_name)); list_del(&dev->bid_devs); while (!list_empty(&dev->bid_tags)) { |