Author: biurrun Date: Fri Nov 27 13:23:11 2009 New Revision: 1853 Log: Move definitions that are only used in debug.c to the place they belong. Modified: trunk/libpisa/debug.c trunk/libpisa/debug.h Modified: trunk/libpisa/debug.c ============================================================================== --- trunk/libpisa/debug.c Fri Nov 27 13:14:59 2009 (r1852) +++ trunk/libpisa/debug.c Fri Nov 27 13:23:11 2009 (r1853) @@ -44,6 +44,18 @@ #include "global.h" #include "util.h" +#define MAX_DEBUGLEVEL_STR 128 + +/* includes filename, line number and max(debug_prefix[]) */ +#define DEBUG_PREFIX_MAX 64 + +/* stderror: includes prefix, separator, msg and \0 + syslog: includes msg and \0 */ +#define DEBUG_MSG_MAX_LEN 1024 + +#define SYSLOG_OPT (LOG_PID) +#define SYSLOG_FACILITY LOG_LOCAL6 + /* must be in the same order as enum debug_level (straight mapping) */ const int pisa_debug2syslog_map[] = { LOG_ALERT, LOG_ERR, Modified: trunk/libpisa/debug.h ============================================================================== --- trunk/libpisa/debug.h Fri Nov 27 13:14:59 2009 (r1852) +++ trunk/libpisa/debug.h Fri Nov 27 13:23:11 2009 (r1853) @@ -27,16 +27,6 @@ #define MAX_DEBUGLEVEL_STR 128 -/* includes filename, line number and max(debug_prefix[]) */ -#define DEBUG_PREFIX_MAX 64 - -/* stderror: includes prefix, separator, msg and \0 - syslog: includes msg and \0 */ -#define DEBUG_MSG_MAX_LEN 1024 - -#define SYSLOG_OPT (LOG_PID) -#define SYSLOG_FACILITY LOG_LOCAL6 - /* * PL_ are Pisa Log Constants, * they can be or'ed and used