summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-06-21 21:59:16 +0000
committerThomas Martitz <kugel@rockbox.org>2009-06-21 21:59:16 +0000
commit78914f3833a57f1a72544e54ed073a047f260e63 (patch)
tree37cf5dac1635bfb2bd48dfe22f495159a10bd90b
parented83831f3bd46d542bd8d5d69d539515cfde7bc9 (diff)
downloadrockbox-78914f3833a57f1a72544e54ed073a047f260e63.tar.gz
rockbox-78914f3833a57f1a72544e54ed073a047f260e63.zip
FS#10364 - Optional debug output for vorbis.c by Jeffrey Goode.
Gets rid of the (recently added) annyoing vorbis debug statements. Comment out "#define LOGF_ENABLE" in vorbis.c to restore them. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21460 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/metadata/vorbis.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/metadata/vorbis.c b/apps/metadata/vorbis.c
index c9fcd471cc..b968cc79fe 100644
--- a/apps/metadata/vorbis.c
+++ b/apps/metadata/vorbis.c
@@ -29,8 +29,16 @@
29#include "metadata_common.h" 29#include "metadata_common.h"
30#include "metadata_parsers.h" 30#include "metadata_parsers.h"
31#include "structec.h" 31#include "structec.h"
32
33/* Define LOGF_ENABLE to enable logf output in this file */
34/*#define LOGF_ENABLE*/
32#include "logf.h" 35#include "logf.h"
33 36
37#ifdef SIMULATOR
38#define LOGFQUEUE logf
39#else
40#define LOGFQUEUE(...)
41#endif
34 42
35struct file 43struct file
36{ 44{
@@ -345,7 +353,7 @@ long read_vorbis_tags(int fd, struct mp3entry *id3,
345 return 0; 353 return 0;
346 } 354 }
347 355
348 DEBUGF("Vorbis comment %d: %s=%s\n", i, name, id3->path); 356 LOGFQUEUE("Vorbis comment %d: %s=%s", i, name, id3->path);
349 len = parse_tag(name, id3->path, id3, buf, buf_remaining, 357 len = parse_tag(name, id3->path, id3, buf, buf_remaining,
350 TAGTYPE_VORBIS); 358 TAGTYPE_VORBIS);
351 buf += len; 359 buf += len;