]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: add debug message
authorKarel Zak <kzak@redhat.com>
Mon, 20 Jun 2011 14:11:04 +0000 (16:11 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 20 Jun 2011 14:11:04 +0000 (16:11 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/superblocks/superblocks.c

index 56a4543320d1c167161de5941f060ab4b3f2d20f..06aa5facd1061ca0e89913d2b2d0917eaf014c49 100644 (file)
@@ -323,11 +323,12 @@ static int superblocks_probe(blkid_probe pr, struct blkid_chain *chn)
                blkid_loff_t off = 0;
 
                chn->idx = i;
+               id = idinfos[i];
 
-               if (chn->fltr && blkid_bmp_get_item(chn->fltr, i))
+               if (chn->fltr && blkid_bmp_get_item(chn->fltr, i)) {
+                       DBG(DEBUG_LOWPROBE, printf("filter out: %s\n", id->name));
                        continue;
-
-               id = idinfos[i];
+               }
 
                if (id->minsz && id->minsz > pr->size)
                        continue;       /* the device is too small */