Il 18/09/2014 11:32, arei.gong...@huawei.com 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