summaryrefslogtreecommitdiff
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
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
-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 @@
27#include "gwps.h" 27#include "gwps.h"
28#include "buffering.h" 28#include "buffering.h"
29#include "dircache.h" 29#include "dircache.h"
30#include "debug.h"
31#include "misc.h" 30#include "misc.h"
32#include "settings.h" 31#include "settings.h"
33 32
33/* Define LOGF_ENABLE to enable logf output in this file */
34/*#define LOGF_ENABLE*/
35#include "logf.h"
36
37#ifdef SIMULATOR
38#define LOGFQUEUE logf
39#else
40#define LOGFQUEUE(...)
41#endif
42
34#if defined(HAVE_JPEG) || defined(PLUGIN) 43#if defined(HAVE_JPEG) || defined(PLUGIN)
35#define USE_JPEG_COVER 44#define USE_JPEG_COVER
36#endif 45#endif
@@ -264,7 +273,7 @@ bool search_albumart_files(const struct mp3entry *id3, const char *size_string,
264 return false; 273 return false;
265 274
266 strncpy(buf, path, buflen); 275 strncpy(buf, path, buflen);
267 DEBUGF("Album art found: %s\n", path); 276 LOGFQUEUE("Album art found: %s", path);
268 return true; 277 return true;
269} 278}
270 279
@@ -283,7 +292,7 @@ bool find_albumart(const struct mp3entry *id3, char *buf, int buflen)
283 if (!data) 292 if (!data)
284 return false; 293 return false;
285 294
286 DEBUGF("Looking for album art for %s\n", id3->path); 295 LOGFQUEUE("Looking for album art for %s", id3->path);
287 296
288 /* Write the size string, e.g. ".100x100". */ 297 /* Write the size string, e.g. ".100x100". */
289 snprintf(size_string, sizeof(size_string), ".%dx%d", 298 snprintf(size_string, sizeof(size_string), ".%dx%d",