Skip to content

Commit 9af6f1a

Browse files
pmhahnzippy2
authored andcommitted
event-test.py: Report ERROR events
VIR_DOMAIN_EVENT_ID_IO_ERROR and VIR_DOMAIN_EVENT_ID_IO_ERROR_REASON callbacks receive the same 'action' parameter, so also translate that numeric action to a descriptive text for the first callback. Signed-off-by: Philipp Hahn <[email protected]>
1 parent c8b6e5f commit 9af6f1a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/event-test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,8 @@ def myDomainEventWatchdogCallback(conn, dom, action, opaque):
534534

535535

536536
def myDomainEventIOErrorCallback(conn, dom, srcpath, devalias, action, opaque):
537-
print("myDomainEventIOErrorCallback: Domain %s(%s) %s %s %d" % (
538-
dom.name(), dom.ID(), srcpath, devalias, action))
537+
print("myDomainEventIOErrorCallback: Domain %s(%s) %s %s %s" % (
538+
dom.name(), dom.ID(), srcpath, devalias, ERROR_EVENTS[action]))
539539

540540

541541
def myDomainEventIOErrorReasonCallback(conn, dom, srcpath, devalias, action, reason, opaque):

0 commit comments

Comments
 (0)