File tree 4 files changed +13
-11
lines changed
4 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 33
33
extern "C" {
34
34
#endif
35
35
36
- #if defined(DEBUG )
37
- #define DEBUGLEVEL DEBUG
38
- #else
39
- #define DEBUGLEVEL 2
40
- #endif
36
+ #define DEBUGLEVEL 0
41
37
42
38
/* debug levels */
43
39
#define CRITICAL 0
@@ -51,11 +47,17 @@ int _dputs(const char *str);
51
47
int _dprintf (const char * fmt , ...) __PRINTFLIKE (1 , 2 );
52
48
int _dvprintf (const char * fmt , va_list ap );
53
49
50
+ #if DEBUGLEVEL
54
51
#define dputc (level , str ) do { if ((level) <= DEBUGLEVEL) { _dputc(str); } } while (0)
55
52
#define dputs (level , str ) do { if ((level) <= DEBUGLEVEL) { _dputs(str); } } while (0)
56
53
#define dprintf (level , x ...) do { if ((level) <= DEBUGLEVEL) { _dprintf(x); } } while (0)
57
54
#define dvprintf (level , x ...) do { if ((level) <= DEBUGLEVEL) { _dvprintf(x); } } while (0)
58
-
55
+ #else
56
+ #define dputc (level , str )
57
+ #define dputs (level , str )
58
+ #define dprintf (level , x ...)
59
+ #define dvprintf (level , x ...)
60
+ #endif
59
61
/* input */
60
62
int dgetc (char * c , bool wait );
61
63
Original file line number Diff line number Diff line change @@ -259,4 +259,4 @@ MTK_RC_TO_VENDOR ?= yes
259
259
260
260
LINKER_SCRIPT += $(BUILDDIR ) /system-onesegment.ld
261
261
262
- CFG_LOG_STORE_SUPPORT := yes
262
+ CFG_LOG_STORE_SUPPORT := no
Original file line number Diff line number Diff line change 47
47
#define LOG_LEVEL_INFO (3)
48
48
#define LOG_LEVEL_DEBUG (4)
49
49
50
- #define BUILD_ERR_LOG (1 )
51
- #define BUILD_WARN_LOG (1 )
52
- #define BUILD_INFO_LOG (1 )
50
+ #define BUILD_ERR_LOG (0 )
51
+ #define BUILD_WARN_LOG (0 )
52
+ #define BUILD_INFO_LOG (0 )
53
53
#define BUILD_DEBUG_LOG (0)
54
54
55
55
/* macros */
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ SCRATCH_SIZE := 0x08000000 # 128MB
44
44
HAVE_CACHE_PL310 := no
45
45
MTK_LM_MODE := no
46
46
MTK_FASTBOOT_SUPPORT := yes
47
- LK_PROFILING := yes
47
+ LK_PROFILING := no
48
48
DEVICE_TREE_SUPPORT := yes
49
49
MTK_JTAG_SWITCH_SUPPORT := yes
50
50
You can’t perform that action at this time.
0 commit comments