diff options
author | Karel Zak | 2014-03-21 12:34:50 +0100 |
---|---|---|
committer | Karel Zak | 2014-03-21 12:34:50 +0100 |
commit | c62a6311ee95556bdaf12106a6a1f8c353322ccd (patch) | |
tree | d82391d43277f80ac98ec5853d484183b016d893 /libblkid/src/verify.c | |
parent | libmount: use new debug functions (diff) | |
download | kernel-qcow2-util-linux-c62a6311ee95556bdaf12106a6a1f8c353322ccd.tar.gz kernel-qcow2-util-linux-c62a6311ee95556bdaf12106a6a1f8c353322ccd.tar.xz kernel-qcow2-util-linux-c62a6311ee95556bdaf12106a6a1f8c353322ccd.zip |
libblkid: use new debug functions
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libblkid/src/verify.c')
-rw-r--r-- | libblkid/src/verify.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libblkid/src/verify.c b/libblkid/src/verify.c index 1c0ca0f7d..d8ad79d68 100644 --- a/libblkid/src/verify.c +++ b/libblkid/src/verify.c @@ -71,13 +71,13 @@ blkid_dev blkid_verify(blkid_cache cache, blkid_dev dev) diff = now - dev->bid_time; if (stat(dev->bid_name, &st) < 0) { - DBG(PROBE, blkid_debug("blkid_verify: error %m (%d) while " + DBG(PROBE, ul_debug("blkid_verify: error %m (%d) while " "trying to stat %s", errno, dev->bid_name)); open_err: if ((errno == EPERM) || (errno == EACCES) || (errno == ENOENT)) { /* We don't have read permission, just return cache data. */ - DBG(PROBE, blkid_debug("returning unverified data for %s", + DBG(PROBE, ul_debug("returning unverified data for %s", dev->bid_name)); return dev; } @@ -99,12 +99,12 @@ blkid_dev blkid_verify(blkid_cache cache, blkid_dev dev) return dev; #ifndef HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC - DBG(PROBE, blkid_debug("need to revalidate %s (cache time %lu, stat time %lu,\t" + DBG(PROBE, ul_debug("need to revalidate %s (cache time %lu, stat time %lu,\t" "time since last check %lu)", dev->bid_name, (unsigned long)dev->bid_time, (unsigned long)st.st_mtime, (unsigned long)diff)); #else - DBG(PROBE, blkid_debug("need to revalidate %s (cache time %lu.%lu, stat time %lu.%lu,\t" + DBG(PROBE, ul_debug("need to revalidate %s (cache time %lu.%lu, stat time %lu.%lu,\t" "time since last check %lu)", dev->bid_name, (unsigned long)dev->bid_time, (unsigned long)dev->bid_utime, @@ -122,7 +122,7 @@ blkid_dev blkid_verify(blkid_cache cache, blkid_dev dev) fd = open(dev->bid_name, O_RDONLY|O_CLOEXEC); if (fd < 0) { - DBG(PROBE, blkid_debug("blkid_verify: error %m (%d) while " + DBG(PROBE, ul_debug("blkid_verify: error %m (%d) while " "opening %s", errno, dev->bid_name)); goto open_err; @@ -174,7 +174,7 @@ blkid_dev blkid_verify(blkid_cache cache, blkid_dev dev) blkid_probe_to_tags(cache->probe, dev); - DBG(PROBE, blkid_debug("%s: devno 0x%04llx, type %s", + DBG(PROBE, ul_debug("%s: devno 0x%04llx, type %s", dev->bid_name, (long long)st.st_rdev, dev->bid_type)); } |