summaryrefslogtreecommitdiff
path: root/print-tree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-04-12 12:14:47 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-04-12 12:14:47 -0400
commit3eaaf935e56e03e3c1db110f055c756bd3415c88 (patch)
tree4c05b0e1ff5bf95b8f43558cc0147883834fb9b2 /print-tree.c
parent98baacc62343ae0eab8b265ea376e59e0aa70c1e (diff)
add some support for multiple devices to progs
Diffstat (limited to 'print-tree.c')
-rw-r--r--print-tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/print-tree.c b/print-tree.c
index eb0c86b0..0250d333 100644
--- a/print-tree.c
+++ b/print-tree.c
@@ -88,7 +88,8 @@ void btrfs_print_leaf(struct btrfs_root *root, struct btrfs_leaf *l)
break;
case BTRFS_DEV_ITEM_KEY:
devi = btrfs_item_ptr(l, i, struct btrfs_device_item);
- printf("\t\tdev namelen %u name %.*s\n",
+ printf("\t\tdev id %Lu namelen %u name %.*s\n",
+ btrfs_device_id(devi),
btrfs_device_pathlen(devi),
btrfs_device_pathlen(devi),
(char *)(devi + 1));