From: Gonglei <arei.gong...@huawei.com> qerror_report_err() is a transitional interface to help with converting existing HMP commands to QMP. It should not be used elsewhere.
Signed-off-by: Gonglei <arei.gong...@huawei.com> Reviewed-by: Markus Armbruster <arm...@redhat.com> --- hw/usb/dev-network.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/usb/dev-network.c b/hw/usb/dev-network.c index 518d536..429ff58 100644 --- a/hw/usb/dev-network.c +++ b/hw/usb/dev-network.c @@ -27,7 +27,7 @@ #include "hw/usb.h" #include "hw/usb/desc.h" #include "net/net.h" -#include "qapi/qmp/qerror.h" +#include "qemu/error-report.h" #include "qemu/queue.h" #include "qemu/config-file.h" #include "sysemu/sysemu.h" @@ -1392,7 +1392,7 @@ static USBDevice *usb_net_init(USBBus *bus, const char *cmdline) idx = net_client_init(opts, 0, &local_err); if (local_err) { - qerror_report_err(local_err); + error_report("%s", error_get_pretty(local_err)); error_free(local_err); return NULL; } -- 1.7.12.4