]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Extract address formatting from cmdAttachDiskFormatAddress
authorPeter Krempa <pkrempa@redhat.com>
Thu, 19 Nov 2020 11:07:32 +0000 (12:07 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 23 Nov 2020 13:44:39 +0000 (14:44 +0100)
commit464629223ecf1365ae5b21035e789bfc81db7568
tree2c3c6215cee77cfb2cdd71f9278d00076e782073
parenta4dca3ec0b26cf583e64fe01d327b5f342932086
virsh: Extract address formatting from cmdAttachDiskFormatAddress

Introduce virshAddressFormat with code from cmdAttachDiskFormatAddress
to format the address.

Note that this patch fixes some whitespace inconsistencies in the
formatted addresses.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
tests/virsh-output.out
tools/virsh-domain.c