summaryrefslogtreecommitdiff
path: root/firmware/export
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
parent66f8fb52a9114ece70e1771119096589004d29f0 (diff)
downloadrockbox-ad500e1063124008e2c0fc5dc666a52e09bba018.tar.gz
rockbox-ad500e1063124008e2c0fc5dc666a52e09bba018.zip
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')
-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 d037edf656..93ebd5f546 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, ...)
33#ifdef __GNUC__ 33#ifdef __GNUC__
34 34
35/* */ 35/* */
36#if defined(SIMULATOR) && !defined(__PCTOOL__) 36#if (SIMULATOR) && !defined(__PCTOOL__) \
37 || ((CONFIG_PLATFORM & PLATFORM_ANDROID) && defined(DEBUG))
37#define DEBUGF debugf 38#define DEBUGF debugf
38#define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__) 39#define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__)
39#elif (CONFIG_PLATFORM & PLATFORM_ANDROID)
40#include "system-target.h"
41#define DEBUGF LOG
42#define LDEBUGF(...)
43#else 40#else
44#if defined(DEBUG) 41#if defined(DEBUG)
45 42