From 9ffe61934ffe19de96352b10aad48bfb596c25cc Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 1 Nov 2010 21:31:40 +0100 Subject: [PATCH] Use yaz_log to print info about events; not printf --- zoom/zoomsh.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index d32d01f..8c06f12 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -12,6 +12,7 @@ #include #include #include +#include #if HAVE_READLINE_READLINE_H #include @@ -29,12 +30,12 @@ static void process_events(ZOOM_connection *c) { int i; - printf("process_events\n"); + yaz_log(YLOG_DEBUG, "process_events"); while ((i = ZOOM_event(MAX_CON, c)) != 0) { int peek = ZOOM_connection_peek_event(c[i-1]); int event = ZOOM_connection_last_event(c[i-1]); - printf ("no = %d peek = %d event = %d %s\n", i-1, + yaz_log(YLOG_DEBUG, "no = %d peek = %d event = %d %s", i-1, peek, event, ZOOM_get_event_str(event)); -- 1.7.10.4