]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: create new RemovalFailed event using correct class
authorPavel Hrdina <phrdina@redhat.com>
Fri, 7 Apr 2017 12:00:22 +0000 (14:00 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Fri, 7 Apr 2017 12:01:32 +0000 (14:01 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/conf/domain_event.c

index c15f32a4e682e3774d5c56d4e2e5b352fdd44662..6e471d7ddb83b4d4cad8d5d44062018862cfa3ab 100644 (file)
@@ -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;