[hipl-commit] [trunk] Rev 4702: debug.h cleanup

  • From: Artturi Karila <artturi.karila@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Wed, 2 Jun 2010 13:41:37 +0300

Committer: Artturi Karila <artturi.karila@xxxxxxxxxx>
Date: 02/06/2010 at 13:41:37
Revision: 4702
Revision-id: artturi.karila@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  debug.h cleanup
  
  Moved defines only used locally to debug.c.

Modified:
  M  lib/core/debug.c
  M  lib/core/debug.h

=== modified file 'lib/core/debug.c'
--- lib/core/debug.c    2010-06-01 15:27:44 +0000
+++ lib/core/debug.c    2010-06-02 10:41:37 +0000
@@ -64,6 +64,11 @@
 #include "straddr.h"
 #include "debug.h"
 
+#define SYSLOG_OPT        (LOG_PID)
+//#define SYSLOG_FACILITY   LOG_DAEMON
+// oleg 2006-11-22
+#define SYSLOG_FACILITY   LOG_LOCAL6
+
 /* must be in the same order as enum debug_level (straight mapping) */
 const int debug2syslog_map[] = { LOG_ALERT,
                                  LOG_ERR,

=== modified file 'lib/core/debug.h'
--- lib/core/debug.h    2010-06-01 15:27:44 +0000
+++ lib/core/debug.h    2010-06-02 10:41:37 +0000
@@ -27,11 +27,6 @@
  * syslog:   includes msg and \0 */
 #define DEBUG_MSG_MAX_LEN     1024
 
-#define SYSLOG_OPT        (LOG_PID)
-//#define SYSLOG_FACILITY   LOG_DAEMON
-// oleg 2006-11-22
-#define SYSLOG_FACILITY   LOG_LOCAL6
-
 /**
  * Error handling macros used for checking errors. To use these macros, define 
a
  * label named @c out_err at the end of the function. For example, memory

Other related posts:

  • » [hipl-commit] [trunk] Rev 4702: debug.h cleanup - Artturi Karila