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

Commit 5b54c1c8 authored by Gurpreet Ghai's avatar Gurpreet Ghai Committed by android-build-merger
Browse files

BTE: Allocate LogMsg buffer on the stack

am: 9048eddf

Change-Id: I54c0bf8dc64ad9c11a6d745aa64f16bbde3a9f6c
parents d9f520bd 9048eddf
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;