blockdev: Make drive_init() use error_report()
authorMarkus Armbruster <armbru@redhat.com>
Mon, 17 Jan 2011 18:31:27 +0000 (19:31 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 24 Jan 2011 15:49:50 +0000 (16:49 +0100)
commitbbb8885be9ea5e3a5d42fe711d528546d8b7895d
tree029ce836436e793284cda9374fc4b03b016ed14a
parent1aa95d3730c1a5b032e3fa16e074ad79a42d44f7
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