HAMMER VFS - Conditionalize more debugging kprintfs during recovery
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 27 Mar 2010 23:36:50 +0000 (16:36 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 27 Mar 2010 23:36:50 +0000 (16:36 -0700)
* Conditionalize recovery record record debug message as well

sys/vfs/hammer/hammer_recover.c

index 8871208..255e1a0 100644 (file)
@@ -1173,11 +1173,14 @@ hammer_recover_redo_rec(hammer_mount_t hmp, struct hammer_rterm_rb_tree *root,
        else
                rterm = nrterm;
 
-       kprintf("record record %016jx objid %016jx offset %016jx flags %08x\n",
-               (intmax_t)scan_offset,
-               (intmax_t)redo->redo_objid,
-               (intmax_t)redo->redo_offset,
-               (int)redo->redo_flags);
+       if (bootverbose) {
+               kprintf("record record %016jx objid %016jx "
+                       "offset %016jx flags %08x\n",
+                       (intmax_t)scan_offset,
+                       (intmax_t)redo->redo_objid,
+                       (intmax_t)redo->redo_offset,
+                       (int)redo->redo_flags);
+       }
 
        /*
         * Scan in reverse order, rte prepended, so the rte list will be