From 686dede71bd2da2e6352c2e59efc7b99d692a937 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Sat, 17 Dec 2005 20:18:10 +0000 Subject: [PATCH] do not undefine USE_DEBUG in header file; allow CFLAGS specification; from Stas Bekman svn:r191 --- README | 6 ++++++ log.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README b/README index b8f69cde..bd4a84ca 100644 --- a/README +++ b/README @@ -12,6 +12,10 @@ $ make verify Before, reporting any problems, please run the regression tests. +To enable the low-level tracing build the library as: + +CFLAGS=-DUSE_DEBUG ./configure [...] + Acknowledgements: ----------------- @@ -25,5 +29,7 @@ fixing bugs: William Ahern Alexander von Gernler Artur Grabowski + Stas Bekman + Tassilo von Parseval If I have forgotten your name, please contact me. diff --git a/log.h b/log.h index e19d8a06..6ec56b42 100644 --- a/log.h +++ b/log.h @@ -33,7 +33,7 @@ void event_errx(int eval, const char *fmt, ...); void event_warnx(const char *fmt, ...); void event_msgx(const char *fmt, ...); void _event_debugx(const char *fmt, ...); -#undef USE_DEBUG + #ifdef USE_DEBUG #define event_debug(x) _event_debugx x #else