]> git.proxmox.com Git - mirror_qemu.git/commit
block: sort formats alphabetically in bdrv_iterate_format()
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 27 Aug 2014 11:08:55 +0000 (12:08 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 28 Aug 2014 12:42:25 +0000 (13:42 +0100)
commitada4240103470371533967334cda9965854fcbda
tree94253097d4959afff61ae330bd35ae64902162d5
parent6d0de8eb21b7a581999ca89a9b447fd1c91e23db
block: sort formats alphabetically in bdrv_iterate_format()

Format names are best consumed in alphabetical order.  This makes
human-readable output easy to produce.

bdrv_iterate_format() already has an array of format strings.  Sort them
before invoking the iteration callback.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: BenoƮt Canet <benoit.canet@nodalink.com>
block.c