diff options
author | Linus Nordberg <linus@nordu.net> | 2010-10-05 09:09:31 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2010-10-05 17:07:54 +0200 |
commit | 82fd2eb207a26ac9504abda1354cf7254b31dd60 (patch) | |
tree | a9fe1ac0c5ca37963ea82e6f8338d2931de5ce64 | |
parent | 15c1b84f13b1b79ad99a97be1ac37dff809bee9a (diff) |
Disable debug printouts.
-rw-r--r-- | lib/Makefile.am | 2 | ||||
-rw-r--r-- | lib/packet.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index 7e3f392..6f01c9a 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -15,4 +15,4 @@ libradsec_la_SOURCES = \ request.c \ radsec.c libradsec_la_LDFLAGS = -version-info 0:0:0 -libradsec_la_CFLAGS = $(CFLAGS) -DDEBUG #-DDEBUG_LEVENT +libradsec_la_CFLAGS = $(CFLAGS) #-DDEBUG -DDEBUG_LEVENT diff --git a/lib/packet.c b/lib/packet.c index 1f20d50..54bfc01 100644 --- a/lib/packet.c +++ b/lib/packet.c @@ -172,7 +172,6 @@ _read_cb (struct bufferevent *bev, void *ctx) assert (!"short packet"); } -#if defined (DEBUG) static void _evlog_cb (int severity, const char *msg) { @@ -200,7 +199,6 @@ _evlog_cb (int severity, const char *msg) } fprintf (stderr, "libevent: [%s] %s\n", sevstr, msg); } -#endif /* DEBUG */ static int _init_evb (struct rs_connection *conn) @@ -209,8 +207,8 @@ _init_evb (struct rs_connection *conn) { #if defined (DEBUG) event_enable_debug_mode (); - event_set_log_callback (_evlog_cb); #endif + event_set_log_callback (_evlog_cb); conn->evb = event_base_new (); if (!conn->evb) return rs_err_conn_push_fl (conn, RSE_EVENT, __FILE__, __LINE__, |