]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh-completer: introduce virshPagesizeNodeToString
authorJán Tomko <jtomko@redhat.com>
Fri, 29 Mar 2019 17:31:01 +0000 (18:31 +0100)
committerJán Tomko <jtomko@redhat.com>
Wed, 3 Apr 2019 08:29:15 +0000 (10:29 +0200)
commitcbc6ee722b1ec30d4ef5e4acc2ce6ca3b2e1b803
tree3989527eb43a0e066a3dc60cdb27958fac9141a6
parentb0325e07e6c38d19a3b0354635f025b5bc0dbd75
virsh-completer: introduce virshPagesizeNodeToString

A helper function that takes a XML node with a "size"
and "unit" attributes and converts it into a human-readable string.

Reduce the size and number of variables in the parent function.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
tools/virsh-completer.c