mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-04-14 06:57:35 +03:00
style: apply clang-format and enforce left pointer alignment
This commit is contained in:
@@ -13,29 +13,28 @@
|
||||
#include "tools.h"
|
||||
#include "trace.h"
|
||||
|
||||
|
||||
static const char TAG[] = "TRACE";
|
||||
typedef struct mem_usage_trace_for_thread {
|
||||
TaskHandle_t task;
|
||||
size_t malloc_int_last;
|
||||
size_t malloc_spiram_last;
|
||||
size_t malloc_spiram_last;
|
||||
size_t malloc_dma_last;
|
||||
const char *name;
|
||||
const char* name;
|
||||
SLIST_ENTRY(mem_usage_trace_for_thread) next;
|
||||
} mem_usage_trace_for_thread_t;
|
||||
|
||||
static EXT_RAM_ATTR SLIST_HEAD(memtrace, mem_usage_trace_for_thread) s_memtrace;
|
||||
|
||||
mem_usage_trace_for_thread_t* memtrace_get_thread_entry(TaskHandle_t task) {
|
||||
mem_usage_trace_for_thread_t* memtrace_get_thread_entry(TaskHandle_t task) {
|
||||
if(!task) {
|
||||
ESP_LOGE(TAG, "memtrace_get_thread_entry: task is NULL");
|
||||
return NULL;
|
||||
}
|
||||
ESP_LOGD(TAG,"Looking for task %s",STR_OR_ALT(pcTaskGetName(task ), "unknown"));
|
||||
ESP_LOGD(TAG, "Looking for task %s", STR_OR_ALT(pcTaskGetName(task), "unknown"));
|
||||
mem_usage_trace_for_thread_t* it;
|
||||
SLIST_FOREACH(it, &s_memtrace, next) {
|
||||
if ( it->task == task ) {
|
||||
ESP_LOGD(TAG,"Found task %s",STR_OR_ALT(pcTaskGetName(task ), "unknown"));
|
||||
if(it->task == task) {
|
||||
ESP_LOGD(TAG, "Found task %s", STR_OR_ALT(pcTaskGetName(task), "unknown"));
|
||||
return it;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user