qemu-img: Improve error messages for failed bdrv_open
authorKevin Wolf <kwolf@redhat.com>
Wed, 9 Feb 2011 10:25:53 +0000 (11:25 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 10 Feb 2011 12:24:11 +0000 (13:24 +0100)
commit56902a53a0d06cafe088f7c0a8acae4e43e4126e
tree44780bc70f19f2bd8b94cd585240638471f3dedc
parent66be841038dbd042cfc27fcca64bf1c658fa43f9
qemu-img: Improve error messages for failed bdrv_open

Output the error message string of the bdrv_open return code. Also set a
non-empty device name for the images because the unknown feature error message
includes it.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-img.c