From 0225face1bd0dddaf19ee8089dc28980a0395633 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sun, 8 Jul 2007 20:17:31 -0400 Subject: [PATCH] Add debugging printf to blkid's probe routine when original fs type failed This particular bit of code has caused problems before, so make it easier to debug problems caused by the probe verification looping forever here. Signed-off-by: "Theodore Ts'o" --- lib/blkid/probe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/blkid/probe.c b/lib/blkid/probe.c index b5bcdcf6..69a43b06 100644 --- a/lib/blkid/probe.c +++ b/lib/blkid/probe.c @@ -999,6 +999,9 @@ try_again: /* * Zap the device filesystem information and try again */ + DBG(DEBUG_PROBE, + printf("previous fs type %s not valid, " + "trying full probe\n", dev->bid_type)); iter = blkid_tag_iterate_begin(dev); while (blkid_tag_next(iter, &type, &value) == 0) blkid_set_tag(dev, type, 0, 0); -- 2.11.0