]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_db: hide debug bbmap output
authorEric Sandeen <sandeen@sandeen.net>
Tue, 8 Apr 2014 08:48:22 +0000 (18:48 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 8 Apr 2014 08:48:22 +0000 (18:48 +1000)
Most of xfsprogs building with DEBUG enables extra
checks, asserts, etc, but this bunch of printfs was
extra output that's not generally helpful for most
people's runtime experience - and it breaks xfs/290
with all the noise.

I assume it's for actual debugging use, and not
generally useful, so bury it a bit deeper under
it's own #ifdef.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
db/io.c

diff --git a/db/io.c b/db/io.c
index 9a787c8f8ff736c9c8c1cb57a32f3626afb3d1f9..89e60305bf9aa6f889853f38185f6a2e7062fd05 100644 (file)
--- a/db/io.c
+++ b/db/io.c
@@ -500,7 +500,7 @@ set_cur(
        push_cur();
 
        if (bbmap) {
-#ifdef DEBUG
+#ifdef DEBUG_BBMAP
                int i;
                printf(_("xfs_db got a bbmap for %lld\n"), (long long)d);
                printf(_("\tblock map"));