|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 02/19] usb-bus: convert USBDeviceClass init to realize |
Date: | Thu, 18 Sep 2014 12:09:06 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 |
Il 18/09/2014 11:32, address@hidden ha scritto: > static void usb_msd_password_cb(void *opaque, int err) > { > MSDState *s = opaque; > + Error *local_err = NULL; > > - if (!err) > - err = usb_device_attach(&s->dev); > + if (!err) { > + usb_device_attach(&s->dev, &local_err); > + } > > - if (err) > + if (local_err) { > + error_report("%s", error_get_pretty(local_err)); I think this should use qerror_report_err. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |