blockdev: Make drive_init() use error_report()
commit807105a775323be9b45ef1e965c5aad85a5ec281
authorMarkus Armbruster <armbru@redhat.com>
Mon, 17 Jan 2011 18:31:27 +0000 (17 19:31 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 24 Jan 2011 15:49:50 +0000 (24 16:49 +0100)
tree029ce836436e793284cda9374fc4b03b016ed14a
parent483848540557aef6af08adbe3ef8201b961220d5
blockdev: Make drive_init() use error_report()

This makes the errors point to the error location, and fixes drive_add
to report errors in the monitor instead of stderr.

While there, tweak a few error messages for consistency.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c