From 4a98b0d7eaa2e94787cdad67c74b770d3ab8ebc0 Mon Sep 17 00:00:00 2001 From: kugel Date: Sun, 21 Jun 2009 22:00:11 +0000 Subject: [PATCH] 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 --- apps/recorder/albumart.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/apps/recorder/albumart.c b/apps/recorder/albumart.c index bba2f1b67..e3cb5f109 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", -- 2.11.4.GIT