On Wed, Mar 28, 2012 at 05:50:53PM -0300, Luiz Capitulino wrote:
> @@ -268,7 +270,14 @@ static int pci_device_hot_remove(Monitor *mon, const 
> char *pci_addr)
>          monitor_printf(mon, "slot %d empty\n", slot);
>          return -1;
>      }
> -    return qdev_unplug(&d->qdev);
> +
> +    ret = qdev_unplug(&d->qdev, &errp);
> +    if (error_is_set(&errp)) {
> +        monitor_printf(mon, "%s\n", error_get_pretty(errp));
> +        error_free(errp);
> +    }

Minor thing if you respin: this if statement could be replaced with 
hmp_handle_error(mon, &errp).

Stefan

Reply via email to