From eac2da635dbe93159d67a202c4c68d0b77c0c72a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 19 Feb 2009 09:24:59 +0100 Subject: added G_LOG_DOMAIN macros to several libraries Define the GLib logging domain in the following libraries: conf, daemon, event_pipe, log. --- src/conf.c | 3 +++ src/daemon.c | 3 +++ src/event_pipe.c | 3 +++ src/log.c | 3 +++ 4 files changed, 12 insertions(+) diff --git a/src/conf.c b/src/conf.c index ea3f449dc..2f022411e 100644 --- a/src/conf.c +++ b/src/conf.c @@ -29,6 +29,9 @@ #include #include +#undef G_LOG_DOMAIN +#define G_LOG_DOMAIN "config" + #define MAX_STRING_SIZE MPD_PATH_MAX+80 #define CONF_COMMENT '#' diff --git a/src/daemon.c b/src/daemon.c index d920ff6c5..309463cd5 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -35,6 +35,9 @@ #include #endif +#undef G_LOG_DOMAIN +#define G_LOG_DOMAIN "daemon" + #ifndef WIN32 /** the Unix user name which MPD runs as */ diff --git a/src/event_pipe.c b/src/event_pipe.c index 2bfdf2044..43a1c4c18 100644 --- a/src/event_pipe.c +++ b/src/event_pipe.c @@ -34,6 +34,9 @@ #include #endif +#undef G_LOG_DOMAIN +#define G_LOG_DOMAIN "event_pipe" + static int event_pipe[2]; static guint event_pipe_source_id; static GMutex *event_pipe_mutex; diff --git a/src/log.c b/src/log.c index 575ba4301..5ef3d02b9 100644 --- a/src/log.c +++ b/src/log.c @@ -38,6 +38,9 @@ #include #endif +#undef G_LOG_DOMAIN +#define G_LOG_DOMAIN "log" + #define LOG_LEVEL_SECURE G_LOG_LEVEL_INFO #define LOG_DATE_BUF_SIZE 16 -- cgit v1.2.3