summaryrefslogtreecommitdiffstats
path: root/libs/blkid/src
diff options
context:
space:
mode:
Diffstat (limited to 'libs/blkid/src')
-rw-r--r--libs/blkid/src/cache.c3
-rw-r--r--libs/blkid/src/probe.c13
2 files changed, 9 insertions, 7 deletions
diff --git a/libs/blkid/src/cache.c b/libs/blkid/src/cache.c
index 0769027bc..228b3155e 100644
--- a/libs/blkid/src/cache.c
+++ b/libs/blkid/src/cache.c
@@ -90,7 +90,8 @@ void blkid_debug_init(int mask)
} else
blkid_debug_mask = mask;
- printf("libblkid: debug mask set to 0x%04x.\n", blkid_debug_mask);
+ if (blkid_debug_mask)
+ printf("libblkid: debug mask set to 0x%04x.\n", blkid_debug_mask);
blkid_debug_mask |= DEBUG_INIT;
}
diff --git a/libs/blkid/src/probe.c b/libs/blkid/src/probe.c
index 764d82fd6..5a4fad746 100644
--- a/libs/blkid/src/probe.c
+++ b/libs/blkid/src/probe.c
@@ -447,7 +447,7 @@ int blkid_do_probe(blkid_probe pr)
id = idinfos[i];
mag = id->magics ? &id->magics[0] : NULL;
- DBG(DEBUG_LOWPROBE, printf("%s ", id->name));
+ DBG(DEBUG_LOWPROBE, printf("\n %s", id->name));
/* try to detect by magic string */
while(mag && mag->magic) {
@@ -460,7 +460,7 @@ int blkid_do_probe(blkid_probe pr)
if (buf && !memcmp(mag->magic,
buf + (mag->sboff & 0x3ff), mag->len)) {
DBG(DEBUG_LOWPROBE, printf(
- "{ detected magic string sboff=%d, kboff=%d } ",
+ "\n --> magic at sboff=%u, kboff=%ld;",
mag->sboff, mag->kboff));
break;
}
@@ -474,7 +474,7 @@ int blkid_do_probe(blkid_probe pr)
/* final check by probing function */
if (id->probefunc) {
DBG(DEBUG_LOWPROBE, printf(
- "{ calling probing function } \n"));
+ "\n --> calling probing function"));
if (id->probefunc(pr, mag) != 0)
continue;
}
@@ -487,10 +487,11 @@ int blkid_do_probe(blkid_probe pr)
if (pr->probreq & BLKID_PROBREQ_USAGE)
blkid_probe_set_usage(pr, id->usage);
- DBG(DEBUG_LOWPROBE, printf("*** leaving probing loop (success)\n"));
+ DBG(DEBUG_LOWPROBE,
+ printf("\n*** leaving probing loop (type=%s)\n", id->name));
return 0;
}
- DBG(DEBUG_LOWPROBE, printf("*** leaving probing loop (failed)\n"));
+ DBG(DEBUG_LOWPROBE, printf("\n*** leaving probing loop (failed)\n"));
return 1;
}
@@ -516,7 +517,7 @@ static struct blkid_prval *blkid_probe_assign_value(
v->name = name;
pr->nvals++;
- DBG(DEBUG_LOWPROBE, printf("assigning %s value\n", name));
+ DBG(DEBUG_LOWPROBE, printf("assigning %s\n", name));
return v;
}