forked from len0rd/rockbox
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
This commit is contained in:
parent
66f8fb52a9
commit
ad500e1063
6 changed files with 62 additions and 15 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue