aboutsummaryrefslogtreecommitdiffstats
path: root/src/log.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-15 18:23:00 +0100
committerMax Kellermann <max@duempel.org>2009-03-15 18:23:00 +0100
commita899c210b9de405a232f0cd102ca9409ef89518b (patch)
tree3b42f6d527cb92c8f1c3c1592541511ce14d283d /src/log.c
parent9e30dfb9c195dab50c4d0173885a94e7b81d45bd (diff)
downloadmpd-a899c210b9de405a232f0cd102ca9409ef89518b.tar.gz
mpd-a899c210b9de405a232f0cd102ca9409ef89518b.tar.xz
mpd-a899c210b9de405a232f0cd102ca9409ef89518b.zip
log: removed DEBUG() and FATAL()
Use GLib the logging functions g_debug(), g_error() instead.
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/log.c b/src/log.c
index 4992bd41a..b9bf6b6f6 100644
--- a/src/log.c
+++ b/src/log.c
@@ -285,30 +285,6 @@ void setup_log_output(bool use_stdout)
}
}
-#define log_func(func,level) \
-G_GNUC_PRINTF(1, 2) void func(const char *fmt, ...) \
-{ \
- if (level <= log_threshold) { \
- va_list args; \
- va_start(args, fmt); \
- g_logv(NULL, level, fmt, args); \
- va_end(args); \
- } \
-}
-
-log_func(DEBUG, G_LOG_LEVEL_DEBUG)
-
-#undef log_func
-
-G_GNUC_PRINTF(1, 2) G_GNUC_NORETURN void FATAL(const char *fmt, ...)
-{
- va_list args;
- va_start(args, fmt);
- g_logv(NULL, G_LOG_LEVEL_ERROR, fmt, args);
- va_end(args);
- exit(EXIT_FAILURE);
-}
-
int cycle_log_files(void)
{
int fd;