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

Commit 2f706091 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

Change-Id: Ie6733b5643b0b6ceea1c976cce2288909308d1c1
parents 44ea6bc0 5b54c1c8
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;