examples: Update strings for event details

This commit is contained in:
Jiri Denemark 2012-08-08 16:17:31 +02:00
parent 6cfdeaac55
commit 462c211232
2 changed files with 4 additions and 4 deletions

View File

@ -176,7 +176,7 @@ static const char *eventDetailToString(int event, int detail) {
ret = "Migrated"; ret = "Migrated";
break; break;
case VIR_DOMAIN_EVENT_STOPPED_SAVED: case VIR_DOMAIN_EVENT_STOPPED_SAVED:
ret = "Failed"; ret = "Saved";
break; break;
case VIR_DOMAIN_EVENT_STOPPED_FAILED: case VIR_DOMAIN_EVENT_STOPPED_FAILED:
ret = "Failed"; ret = "Failed";

View File

@ -443,9 +443,9 @@ def detailToString(event, detail):
eventStrings = ( eventStrings = (
( "Added", "Updated" ), ( "Added", "Updated" ),
( "Removed" ), ( "Removed" ),
( "Booted", "Migrated", "Restored", "Snapshot" ), ( "Booted", "Migrated", "Restored", "Snapshot", "Wakeup" ),
( "Paused", "Migrated", "IOError", "Watchdog" ), ( "Paused", "Migrated", "IOError", "Watchdog", "Restored", "Snapshot" ),
( "Unpaused", "Migrated"), ( "Unpaused", "Migrated", "Snapshot" ),
( "Shutdown", "Destroyed", "Crashed", "Migrated", "Saved", "Failed", "Snapshot"), ( "Shutdown", "Destroyed", "Crashed", "Migrated", "Saved", "Failed", "Snapshot"),
( "Finished" ) ( "Finished" )
) )