From: Adam Dickmeiss Date: Thu, 23 Sep 2010 08:49:07 +0000 (+0200) Subject: zoomtst3: print event name X-Git-Tag: v4.1.0~7 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=b6aa93dcb5c07ed09b664c006b5f33b0135a0854;p=yaz-moved-to-github.git zoomtst3: print event name --- 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 */