summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/recorder/albumart.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/apps/recorder/albumart.c b/apps/recorder/albumart.c
index bba2f1b..e3cb5f1 100644
--- a/apps/recorder/albumart.c
+++ b/apps/recorder/albumart.c
@@ -27,10 +27,19 @@
#include "gwps.h"
#include "buffering.h"
#include "dircache.h"
-#include "debug.h"
#include "misc.h"
#include "settings.h"
+/* Define LOGF_ENABLE to enable logf output in this file */
+/*#define LOGF_ENABLE*/
+#include "logf.h"
+
+#ifdef SIMULATOR
+#define LOGFQUEUE logf
+#else
+#define LOGFQUEUE(...)
+#endif
+
#if defined(HAVE_JPEG) || defined(PLUGIN)
#define USE_JPEG_COVER
#endif
@@ -264,7 +273,7 @@ bool search_albumart_files(const struct mp3entry *id3, const char *size_string,
return false;
strncpy(buf, path, buflen);
- DEBUGF("Album art found: %s\n", path);
+ LOGFQUEUE("Album art found: %s", path);
return true;
}
@@ -283,7 +292,7 @@ bool find_albumart(const struct mp3entry *id3, char *buf, int buflen)
if (!data)
return false;
- DEBUGF("Looking for album art for %s\n", id3->path);
+ LOGFQUEUE("Looking for album art for %s", id3->path);
/* Write the size string, e.g. ".100x100". */
snprintf(size_string, sizeof(size_string), ".%dx%d",