From: Gonglei <arei.gong...@huawei.com> qerror_report() is a transitional interface to help with converting existing HMP commands to QMP. It should not be used elsewhere. Replace by error_report().
Signed-off-by: Gonglei <arei.gong...@huawei.com> Reviewed-by: Markus Armbruster <arm...@redhat.com> --- hw/usb/redirect.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c index 44522d9..959a43c 100644 --- a/hw/usb/redirect.c +++ b/hw/usb/redirect.c @@ -27,7 +27,7 @@ #include "qemu-common.h" #include "qemu/timer.h" -#include "monitor/monitor.h" +#include "qemu/error-report.h" #include "sysemu/sysemu.h" #include "qemu/iov.h" #include "sysemu/char.h" @@ -1363,7 +1363,7 @@ static int usbredir_initfn(USBDevice *udev) int i; if (dev->cs == NULL) { - qerror_report(QERR_MISSING_PARAMETER, "chardev"); + error_report("Parameter 'chardev' is missing"); return -1; } @@ -1372,8 +1372,8 @@ static int usbredir_initfn(USBDevice *udev) &dev->filter_rules, &dev->filter_rules_count); if (i) { - qerror_report(QERR_INVALID_PARAMETER_VALUE, "filter", - "a usb device filter string"); + error_report("Parameter 'filter' expects " + "a usb device filter string"); return -1; } } -- 1.7.12.4