aboutsummaryrefslogtreecommitdiff
path: root/qemu-img.c
diff options
context:
space:
mode:
authorHanna Reitz <hreitz@redhat.com>2022-06-20 18:27:00 +0200
committerKevin Wolf <kwolf@redhat.com>2023-02-01 16:52:33 +0100
commit76c9e9750d1bd580e8ed4465f6be3a986434e7c3 (patch)
treecb7c6a12d05fa85a8a5f838be2826a2299cc3cbb /qemu-img.c
parent6cab33997b91eb86e82a6a2ae58a24f835249d4a (diff)
downloadqemu-76c9e9750d1bd580e8ed4465f6be3a986434e7c3.zip
qemu-76c9e9750d1bd580e8ed4465f6be3a986434e7c3.tar.gz
qemu-76c9e9750d1bd580e8ed4465f6be3a986434e7c3.tar.bz2
block/qapi: Add indentation to bdrv_node_info_dump()
In order to let qemu-img info present a block graph, add a parameter to bdrv_node_info_dump() and bdrv_image_info_specific_dump() so that the information of nodes below the root level can be given an indentation. Signed-off-by: Hanna Reitz <hreitz@redhat.com> Message-Id: <20220620162704.80987-9-hreitz@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-img.c')
-rw-r--r--qemu-img.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-img.c b/qemu-img.c
index a2d414b..d2763ac 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -2860,7 +2860,7 @@ static void dump_human_image_info_list(BlockNodeInfoList *list)
}
delim = true;
- bdrv_node_info_dump(elem->value);
+ bdrv_node_info_dump(elem->value, 0);
}
}