projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d2c2433
)
Use yaz_log to print info about events; not printf
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 1 Nov 2010 20:31:40 +0000
(21:31 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 1 Nov 2010 20:31:40 +0000
(21:31 +0100)
zoom/zoomsh.c
patch
|
blob
|
history
diff --git
a/zoom/zoomsh.c
b/zoom/zoomsh.c
index
d32d01f
..
8c06f12
100644
(file)
--- a/
zoom/zoomsh.c
+++ b/
zoom/zoomsh.c
@@
-12,6
+12,7
@@
#include <string.h>
#include <ctype.h>
#include <yaz/wrbuf.h>
#include <string.h>
#include <ctype.h>
#include <yaz/wrbuf.h>
+#include <yaz/log.h>
#if HAVE_READLINE_READLINE_H
#include <readline/readline.h>
#if HAVE_READLINE_READLINE_H
#include <readline/readline.h>
@@
-29,12
+30,12
@@
static void process_events(ZOOM_connection *c)
{
int i;
{
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]);
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));
peek,
event,
ZOOM_get_event_str(event));