aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-08-01 04:18:53 +0000
committerEric Wong <normalperson@yhbt.net>2006-08-01 04:18:53 +0000
commit89073cfbba6126ce28221ad54e75a69b05b21fd6 (patch)
tree370c1a9cfad359d919911242753b62b7495472c0 /src/decode.c
parent2532bc36d25318724f5bf50cfe2b122160665386 (diff)
downloadmpd-89073cfbba6126ce28221ad54e75a69b05b21fd6.tar.gz
mpd-89073cfbba6126ce28221ad54e75a69b05b21fd6.tar.xz
mpd-89073cfbba6126ce28221ad54e75a69b05b21fd6.zip
logging cleanups
* Moved all logging-related stuff into log.c (and not myfprintf.c) * ISO C90-compliant strftime usage: %e and %R replaced with %d and %H:%M respectively * Got rid of variadic macros since some old-school compilers don't like them * compiling with -DNDEBUG disables the DEBUG() macro git-svn-id: https://svn.musicpd.org/mpd/trunk@4512 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/decode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decode.c b/src/decode.c
index 144edd70f..4a23d55ed 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -208,7 +208,7 @@ static int decodeSeek(PlayerControl * pc, DecoderControl * dc,
#define processDecodeInput() \
if(pc->cycleLogFiles) { \
- myfprintfCloseAndOpenLogFile(); \
+ cycle_log_files(); \
pc->cycleLogFiles = 0; \
} \
if(pc->lockQueue) { \
@@ -415,7 +415,7 @@ static int decoderInit(PlayerControl * pc, OutputBuffer * cb,
while (1) {
if (dc->cycleLogFiles) {
- myfprintfCloseAndOpenLogFile();
+ cycle_log_files();
dc->cycleLogFiles = 0;
} else if (dc->start || dc->seek)
decodeStart(pc, cb, dc);