diff options
author | Stefan Behrens <sbehrens@giantdisaster.de> | 2013-07-16 09:38:33 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-09-01 07:57:40 -0400 |
commit | d4c34f6bffe246bcf05a1471873667d678a47a54 (patch) | |
tree | 6488e9d11d208a35206e5f3eedbafc6f7cadc8fa /fs/btrfs/print-tree.c | |
parent | 599c75ec3f7f3b606e8a0a684c00f12190712de8 (diff) |
Btrfs: Print key type in decimal everywhere
This is confusing, sometimes the key type is printed in hex (without
a leading "0x" which makes things even more complicated), sometimes
in decimal...
Change it to be in decimal everywhere.
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/print-tree.c')
-rw-r--r-- | fs/btrfs/print-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/print-tree.c b/fs/btrfs/print-tree.c index dc0024f17c1f..fe7bf4a12568 100644 --- a/fs/btrfs/print-tree.c +++ b/fs/btrfs/print-tree.c | |||
@@ -95,7 +95,7 @@ static void print_extent_item(struct extent_buffer *eb, int slot) | |||
95 | struct btrfs_tree_block_info *info; | 95 | struct btrfs_tree_block_info *info; |
96 | info = (struct btrfs_tree_block_info *)(ei + 1); | 96 | info = (struct btrfs_tree_block_info *)(ei + 1); |
97 | btrfs_tree_block_key(eb, info, &key); | 97 | btrfs_tree_block_key(eb, info, &key); |
98 | printk(KERN_INFO "\t\ttree block key (%llu %x %llu) " | 98 | printk(KERN_INFO "\t\ttree block key (%llu %u %llu) " |
99 | "level %d\n", | 99 | "level %d\n", |
100 | (unsigned long long)btrfs_disk_key_objectid(&key), | 100 | (unsigned long long)btrfs_disk_key_objectid(&key), |
101 | key.type, | 101 | key.type, |
@@ -183,7 +183,7 @@ void btrfs_print_leaf(struct btrfs_root *root, struct extent_buffer *l) | |||
183 | item = btrfs_item_nr(l, i); | 183 | item = btrfs_item_nr(l, i); |
184 | btrfs_item_key_to_cpu(l, &key, i); | 184 | btrfs_item_key_to_cpu(l, &key, i); |
185 | type = btrfs_key_type(&key); | 185 | type = btrfs_key_type(&key); |
186 | printk(KERN_INFO "\titem %d key (%llu %x %llu) itemoff %d " | 186 | printk(KERN_INFO "\titem %d key (%llu %u %llu) itemoff %d " |
187 | "itemsize %d\n", | 187 | "itemsize %d\n", |
188 | i, | 188 | i, |
189 | (unsigned long long)key.objectid, type, | 189 | (unsigned long long)key.objectid, type, |