summaryrefslogtreecommitdiff
path: root/firmware/export/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/debug.h')
-rw-r--r--firmware/export/debug.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/export/debug.h b/firmware/export/debug.h
index f7f0f32426..f19a96c526 100644
--- a/firmware/export/debug.h
+++ b/firmware/export/debug.h
@@ -21,6 +21,7 @@
21#ifndef DEBUG_H 21#ifndef DEBUG_H
22#define DEBUG_H 22#define DEBUG_H
23 23
24#include "config.h"
24#include "gcc_extensions.h" 25#include "gcc_extensions.h"
25 26
26extern void debug_init(void); 27extern void debug_init(void);
@@ -34,7 +35,11 @@ extern void ldebugf(const char* file, int line, const char *fmt, ...)
34/* */ 35/* */
35#if defined(SIMULATOR) && !defined(__PCTOOL__) 36#if defined(SIMULATOR) && !defined(__PCTOOL__)
36#define DEBUGF debugf 37#define DEBUGF debugf
37#define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__) 38#define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__) && defined(DEBUG)
39#elif (CONFIG_PLATFORM & PLATFORM_ANDROID)
40#include "system-target.h"
41#define DEBUGF LOG
42#define LDEBUGF(...)
38#else 43#else
39#if defined(DEBUG) 44#if defined(DEBUG)
40 45