aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.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/main.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/main.c')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 483947a1a..a8e6ddae5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -168,9 +168,9 @@ initialize_decoder_and_player(void)
if (param != NULL) {
perc = strtod(param->value, &test);
if (*test != '%' || perc < 0 || perc > 100) {
- FATAL("buffered before play \"%s\" is not a positive "
- "percentage and less than 100 percent, line %i"
- "\n", param->value, param->line);
+ g_error("buffered before play \"%s\" is not a positive "
+ "percentage and less than 100 percent, line %i",
+ param->value, param->line);
}
} else
perc = DEFAULT_BUFFER_BEFORE_PLAY;