Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6447478a authored by Gurpreet Ghai's avatar Gurpreet Ghai Committed by android-build-merger
Browse files

BTE: Allocate LogMsg buffer on the stack am: 9048eddf am: 5b54c1c8

am: 2f706091

Change-Id: I36bcd56e4742265bb518ebb536f281b97c6e6246
parents 18622891 2f706091
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@
#endif

#ifndef BTE_LOG_BUF_SIZE
#define BTE_LOG_BUF_SIZE 1024
#define BTE_LOG_BUF_SIZE 256
#endif

#define BTE_LOG_MAX_SIZE (BTE_LOG_BUF_SIZE - 12)
@@ -132,7 +132,7 @@ static tBTTRC_FUNC_MAP bttrc_set_level_map[] = {
    {0, 0, NULL, NULL, DEFAULT_CONF_TRACE_LEVEL}};

void LogMsg(uint32_t trace_set_mask, const char* fmt_str, ...) {
  static char buffer[BTE_LOG_BUF_SIZE];
  char buffer[BTE_LOG_BUF_SIZE];
  int trace_layer = TRACE_GET_LAYER(trace_set_mask);
  if (trace_layer >= TRACE_LAYER_MAX_NUM) trace_layer = 0;