diff options
author | 2022-06-20 18:27:00 +0200 | |
---|---|---|
committer | 2023-02-01 16:52:33 +0100 | |
commit | 76c9e9750d1bd580e8ed4465f6be3a986434e7c3 (patch) | |
tree | cb7c6a12d05fa85a8a5f838be2826a2299cc3cbb /qemu-io-cmds.c | |
parent | block/qapi: Introduce BlockGraphInfo (diff) | |
download | qemu-76c9e9750d1bd580e8ed4465f6be3a986434e7c3.tar.xz qemu-76c9e9750d1bd580e8ed4465f6be3a986434e7c3.zip |
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-io-cmds.c')
-rw-r--r-- | qemu-io-cmds.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qemu-io-cmds.c b/qemu-io-cmds.c index d7e562dda6..a061031615 100644 --- a/qemu-io-cmds.c +++ b/qemu-io-cmds.c @@ -1789,7 +1789,8 @@ static int info_f(BlockBackend *blk, int argc, char **argv) } if (spec_info) { bdrv_image_info_specific_dump(spec_info, - "Format specific information:\n"); + "Format specific information:\n", + 0); qapi_free_ImageInfoSpecific(spec_info); } |