Skip to content

Commit 7bcb307

Browse files
committed
lk: disable debug/pal log
Signed-off-by: svoboda18 <[email protected]>
1 parent 6af1689 commit 7bcb307

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

Diff for: include/debug.h

+8-6
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@
3333
extern "C" {
3434
#endif
3535

36-
#if defined(DEBUG)
37-
#define DEBUGLEVEL DEBUG
38-
#else
39-
#define DEBUGLEVEL 2
40-
#endif
36+
#define DEBUGLEVEL 0
4137

4238
/* debug levels */
4339
#define CRITICAL 0
@@ -51,11 +47,17 @@ int _dputs(const char *str);
5147
int _dprintf(const char *fmt, ...) __PRINTFLIKE(1, 2);
5248
int _dvprintf(const char *fmt, va_list ap);
5349

50+
#if DEBUGLEVEL
5451
#define dputc(level, str) do { if ((level) <= DEBUGLEVEL) { _dputc(str); } } while (0)
5552
#define dputs(level, str) do { if ((level) <= DEBUGLEVEL) { _dputs(str); } } while (0)
5653
#define dprintf(level, x...) do { if ((level) <= DEBUGLEVEL) { _dprintf(x); } } while (0)
5754
#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
5961
/* input */
6062
int dgetc(char *c, bool wait);
6163

Diff for: platform/mt6580/rules.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,4 +259,4 @@ MTK_RC_TO_VENDOR ?= yes
259259

260260
LINKER_SCRIPT += $(BUILDDIR)/system-onesegment.ld
261261

262-
CFG_LOG_STORE_SUPPORT := yes
262+
CFG_LOG_STORE_SUPPORT := no

Diff for: platform/pal/inc/pal_log.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
#define LOG_LEVEL_INFO (3)
4848
#define LOG_LEVEL_DEBUG (4)
4949

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)
5353
#define BUILD_DEBUG_LOG (0)
5454

5555
/* macros */

Diff for: target/X5/rules.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ SCRATCH_SIZE := 0x08000000 # 128MB
4444
HAVE_CACHE_PL310 := no
4545
MTK_LM_MODE := no
4646
MTK_FASTBOOT_SUPPORT := yes
47-
LK_PROFILING := yes
47+
LK_PROFILING := no
4848
DEVICE_TREE_SUPPORT := yes
4949
MTK_JTAG_SWITCH_SUPPORT := yes
5050

0 commit comments

Comments
 (0)