]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/usb/host-libusb.c
error: Use error_report_err() where appropriate
[mirror_qemu.git] / hw / usb / host-libusb.c
index cff4f7cd51597185a323d2b1e825e04cebf8e218..38f7c7268b18d0edbad415ed23749d44da29992d 100644 (file)
@@ -878,8 +878,7 @@ static int usb_host_open(USBHostDevice *s, libusb_device *dev)
 
     usb_device_attach(udev, &local_err);
     if (local_err) {
-        error_report("%s", error_get_pretty(local_err));
-        error_free(local_err);
+        error_report_err(local_err);
         goto fail;
     }