diff mbox

Btrfs-progs: only print FIRST_CHUNK_TREE for chunk items in debug-tree

Message ID 1265224413-4192-1-git-send-email-sage@newdream.net (mailing list archive)
State New, archived
Headers show

Commit Message

Sage Weil Feb. 3, 2010, 7:13 p.m. UTC
None
diff mbox

Patch

diff --git a/print-tree.c b/print-tree.c
index 59f4358..de064e1 100644
--- a/print-tree.c
+++ b/print-tree.c
@@ -413,8 +413,11 @@  static void print_objectid(unsigned long long objectid, u8 type)
 		printf("MULTIPLE");
 		break;
 	case BTRFS_FIRST_CHUNK_TREE_OBJECTID:
-		printf("FIRST_CHUNK_TREE");
-		break;
+		if (type == BTRFS_CHUNK_ITEM_KEY) {
+			printf("FIRST_CHUNK_TREE");
+			break;
+		}
+		/* fall-thru */
 	default:
 		printf("%llu", objectid);
 	}