usb/dev-storage: Avoid qerror_report_err() outside QMP handlers
authorMarkus Armbruster <armbru@redhat.com>
Thu, 12 Mar 2015 16:26:50 +0000 (17:26 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 17 Mar 2015 13:23:53 +0000 (14:23 +0100)
commitc326529b74aa37adb216604bb6ca93cd49007012
tree144ab2272611820fb9c535cacf1dc0e642ff81a5
parent7afcc1f9bae3e857834a3bb8247be101e2354998
usb/dev-storage: Avoid qerror_report_err() outside QMP handlers

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

usb_msd_password_cb() is only called from within an HMP command
handler.  Replace by error_report_err().

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/dev-storage.c