diff --git a/cmd/zdb/zdb.c b/cmd/zdb/zdb.c index 770aed2ea076..c53f91df2107 100644 --- a/cmd/zdb/zdb.c +++ b/cmd/zdb/zdb.c @@ -1877,19 +1877,17 @@ dump_object(objset_t *os, uint64_t object, int verbosity, int *print_header) "SPILL_BLKPTR" : ""); (void) printf("\tdnode maxblkid: %llu\n", (longlong_t)dn->dn_phys->dn_maxblkid); - + if (verbosity >= 6 && (dn->dn_phys->dn_flags & DNODE_FLAG_SPILL_BLKPTR)) { + char blkbuf[BP_SPRINTF_LEN]; + snprintf_blkptr_compact(blkbuf, sizeof (blkbuf), &dn->dn_phys->dn_spill); + (void) printf("\n\tSpill blkptr:\n\t\t%s\n", blkbuf); + } object_viewer[ZDB_OT_TYPE(doi.doi_bonus_type)](os, object, bonus, bsize); object_viewer[ZDB_OT_TYPE(doi.doi_type)](os, object, NULL, 0); *print_header = 1; } - if (verbosity >= 6 && (dn->dn_phys->dn_flags & DNODE_FLAG_SPILL_BLKPTR)) { - char blkbuf[BP_SPRINTF_LEN]; - snprintf_blkptr_compact(blkbuf, sizeof (blkbuf), &dn->dn_phys->dn_spill); - (void) printf("\n\tSpill blkptr:\n\t\t%s\n", blkbuf); - } - if (verbosity >= 5) dump_indirect(dn);