]> git.proxmox.com Git - mirror_qemu.git/commit - blockdev.c
blockdev: Don't use qerror_report_err() in drive_init()
authorMarkus Armbruster <armbru@redhat.com>
Fri, 16 May 2014 09:00:08 +0000 (11:00 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 28 May 2014 12:28:46 +0000 (14:28 +0200)
commite8817e7b0e0c355690d34bb499d50373137d240f
treeb278309ecfe58168ee1d8455ccfc081580be51c0
parent6815bce5421ddb4987cd98d0146baf65200eabcd
blockdev: Don't use qerror_report_err() in drive_init()

qerror_report_err() is a transitional interface to help with
converting existing HMP commands to QMP.  It should not be used
elsewhere.

drive_init() is not meant to be used by QMP commands.  It uses both
qerror_report_err() and error_report().  Convert the former to the
latter.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
blockdev.c