]> granicus.if.org Git - libevent/commitdiff
Add ET flag into event_base_dump_events()
authorAzat Khuzhin <a3at.mail@gmail.com>
Mon, 29 Oct 2018 19:22:00 +0000 (22:22 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Tue, 30 Oct 2018 22:21:07 +0000 (01:21 +0300)
event.c

diff --git a/event.c b/event.c
index caf766b5b1920007f5c289bc784c8dd6aeb63be8..ea72ddd3559296596d7687199521a00d9cc4c2a9 100644 (file)
--- a/event.c
+++ b/event.c
@@ -3728,13 +3728,14 @@ dump_inserted_event_fn(const struct event_base *base, const struct event *e, voi
        if (! (e->ev_flags & (EVLIST_INSERTED|EVLIST_TIMEOUT)))
                return 0;
 
-       fprintf(output, "  %p [%s "EV_SOCK_FMT"]%s%s%s%s%s%s",
+       fprintf(output, "  %p [%s "EV_SOCK_FMT"]%s%s%s%s%s%s%s",
            (void*)e, gloss, EV_SOCK_ARG(e->ev_fd),
            (e->ev_events&EV_READ)?" Read":"",
            (e->ev_events&EV_WRITE)?" Write":"",
            (e->ev_events&EV_CLOSED)?" EOF":"",
            (e->ev_events&EV_SIGNAL)?" Signal":"",
            (e->ev_events&EV_PERSIST)?" Persist":"",
+           (e->ev_events&EV_ET)?" ET":"",
            (e->ev_flags&EVLIST_INTERNAL)?" Internal":"");
        if (e->ev_flags & EVLIST_TIMEOUT) {
                struct timeval tv;