summaryrefslogtreecommitdiff
path: root/firmware/export/debug.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-09-20 17:38:47 +0000
committerThomas Martitz <kugel@rockbox.org>2010-09-20 17:38:47 +0000
commitad500e1063124008e2c0fc5dc666a52e09bba018 (patch)
tree50a181f350237c26aaa74d015af7e6fa03f6bae2 /firmware/export/debug.h
parent66f8fb52a9114ece70e1771119096589004d29f0 (diff)
downloadrockbox-ad500e1063124008e2c0fc5dc666a52e09bba018.zip
rockbox-ad500e1063124008e2c0fc5dc666a52e09bba018.tar.gz
rockbox-ad500e1063124008e2c0fc5dc666a52e09bba018.tar.bz2
rockbox-ad500e1063124008e2c0fc5dc666a52e09bba018.tar.xz
Redirect (L)DEBUGFs to adb logcat in DEBUG enabled builds.
Exclude compilation of firmware/debug.c for hosted platforms. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28125 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/debug.h')
-rw-r--r--firmware/export/debug.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/firmware/export/debug.h b/firmware/export/debug.h
index d037edf..93ebd5f 100644
--- a/firmware/export/debug.h
+++ b/firmware/export/debug.h
@@ -33,13 +33,10 @@ extern void ldebugf(const char* file, int line, const char *fmt, ...)
#ifdef __GNUC__
/* */
-#if defined(SIMULATOR) && !defined(__PCTOOL__)
+#if (SIMULATOR) && !defined(__PCTOOL__) \
+ || ((CONFIG_PLATFORM & PLATFORM_ANDROID) && defined(DEBUG))
#define DEBUGF debugf
#define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__)
-#elif (CONFIG_PLATFORM & PLATFORM_ANDROID)
-#include "system-target.h"
-#define DEBUGF LOG
-#define LDEBUGF(...)
#else
#if defined(DEBUG)