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)
commitb9eaf9ecb15a9c69a592f386159163d5efc3b919
tree44780bc70f19f2bd8b94cd585240638471f3dedc
parent10b758e85c9b38b4b370cff81435f6ed26024a26
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