summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-06-21 22:00:11 +0000
committerThomas Martitz <kugel@rockbox.org>2009-06-21 22:00:11 +0000
commitee1d8d167606854f3075dfe5ba602115d6c50a36 (patch)
tree95b66c3c8f067ce0d6b0176193a2008552b6ad03 /apps
parent78914f3833a57f1a72544e54ed073a047f260e63 (diff)
downloadrockbox-ee1d8d167606854f3075dfe5ba602115d6c50a36.tar.gz
rockbox-ee1d8d167606854f3075dfe5ba602115d6c50a36.zip
FS#10365 - Optional debug output for albumart.c
Same as r21460 just for albumart.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21462 a1c6a512-1295-4272-9138-f99709370657
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 bba2f1b67e..e3cb5f1098 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",