diff --git a/src/conf/domain_event.c b/src/conf/domain_event.c index 6243b4262f..f6d20633de 100644 --- a/src/conf/domain_event.c +++ b/src/conf/domain_event.c @@ -1443,7 +1443,7 @@ virDomainEventDeviceRemovalFailedNew(int id, if (virDomainEventsInitialize() < 0) return NULL; - if (!(ev = virDomainEventNew(virDomainEventDeviceAddedClass, + if (!(ev = virDomainEventNew(virDomainEventDeviceRemovalFailedClass, VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILED, id, name, uuid))) return NULL;