From b6aa93dcb5c07ed09b664c006b5f33b0135a0854 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 23 Sep 2010 10:49:07 +0200 Subject: [PATCH] zoomtst3: print event name --- zoom/zoomtst3.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zoom/zoomtst3.c b/zoom/zoomtst3.c index 52ee5a3..769df73 100644 --- a/zoom/zoomtst3.c +++ b/zoom/zoomtst3.c @@ -66,9 +66,11 @@ int main(int argc, char **argv) while ((i = ZOOM_event (no, z))) { int peek = ZOOM_connection_peek_event(z[i-1]); - printf ("no = %d peek = %d event = %d\n", i-1, + int event = ZOOM_connection_last_event(z[i-1]); + printf ("no = %d peek = %d event = %d %s\n", i-1, peek, - ZOOM_connection_last_event(z[i-1])); + event, + ZOOM_get_event_str(event)); } /* no more to be done. Inspect results */ -- 1.7.10.4