[libvirt] [PATCH libvirt-glib] examples: make detail strings match event details

Guido Günther posted 1 patch 7 years ago
Failed in applying to current master (apply log)
examples/event-test.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[libvirt] [PATCH libvirt-glib] examples: make detail strings match event details
Posted by Guido Günther 7 years ago
---
 examples/event-test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/event-test.c b/examples/event-test.c
index 7c9f4ec..a204485 100644
--- a/examples/event-test.c
+++ b/examples/event-test.c
@@ -78,7 +78,7 @@ static const char *eventDetailToString(int event, int detail) {
         break;
     case VIR_DOMAIN_EVENT_SUSPENDED:
         if (detail == VIR_DOMAIN_EVENT_SUSPENDED_PAUSED)
-            ret = "Unpaused";
+            ret = "Paused";
         else if (detail == VIR_DOMAIN_EVENT_SUSPENDED_MIGRATED)
             ret = "Migrated";
         break;
@@ -103,7 +103,7 @@ static const char *eventDetailToString(int event, int detail) {
             ret = "Migrated";
             break;
         case VIR_DOMAIN_EVENT_STOPPED_SAVED:
-            ret = "Failed";
+            ret = "Saved";
             break;
         case VIR_DOMAIN_EVENT_STOPPED_FAILED:
             ret = "Failed";
-- 
2.11.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH libvirt-glib] examples: make detail strings match event details
Posted by John Ferlan 7 years ago

On 03/18/2017 09:49 AM, Guido Günther wrote:
> ---
>  examples/event-test.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 

ACK - matches what libvirt source for
examples/object-events/event-test.c has

John


--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH libvirt-glib] examples: make detail strings match event details
Posted by Guido Günther 7 years ago
On Sat, Mar 25, 2017 at 09:17:23AM -0400, John Ferlan wrote:
> 
> 
> On 03/18/2017 09:49 AM, Guido Günther wrote:
> > ---
> >  examples/event-test.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> 
> ACK - matches what libvirt source for
> examples/object-events/event-test.c has

Pushed. Thanks
 -- Guido

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list