From 6e80811ca2e472a5bdfa90adef1289608d10e85b Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Thu, 11 Mar 2021 20:14:23 +1100 Subject: [PATCH] log: Remove redundant definition of LOG_LOCAL_LEVEL After adding a maximum setting, the default value of LOG_LOCAL_LEVEL will be CONFIG_LOG_MAXIMUM_LEVEL not CONFIG_LOG_DEFAULT_LEVEL --- components/app_trace/gcov/gcov_rtio.c | 1 - components/app_trace/host_file_io.c | 1 - components/esp_system/dbg_stubs.c | 1 - components/esp_system/stack_check.c | 1 - components/pthread/pthread.c | 1 - components/pthread/pthread_cond_var.c | 1 - components/pthread/test/test_pthread_cxx.cpp | 1 - 7 files changed, 7 deletions(-) diff --git a/components/app_trace/gcov/gcov_rtio.c b/components/app_trace/gcov/gcov_rtio.c index 6744354563..f684e4d7ba 100644 --- a/components/app_trace/gcov/gcov_rtio.c +++ b/components/app_trace/gcov/gcov_rtio.c @@ -34,7 +34,6 @@ #define ESP_GCOV_DOWN_BUF_SIZE 4200 -#define LOG_LOCAL_LEVEL CONFIG_LOG_DEFAULT_LEVEL #include "esp_log.h" const static char *TAG = "esp_gcov_rtio"; diff --git a/components/app_trace/host_file_io.c b/components/app_trace/host_file_io.c index 19bfa51e4f..528bb4ec9b 100644 --- a/components/app_trace/host_file_io.c +++ b/components/app_trace/host_file_io.c @@ -27,7 +27,6 @@ #if CONFIG_APPTRACE_ENABLE -#define LOG_LOCAL_LEVEL CONFIG_LOG_DEFAULT_LEVEL #include "esp_log.h" const static char *TAG = "esp_host_file_io"; diff --git a/components/esp_system/dbg_stubs.c b/components/esp_system/dbg_stubs.c index 1ee9124897..ef49c5524d 100644 --- a/components/esp_system/dbg_stubs.c +++ b/components/esp_system/dbg_stubs.c @@ -32,7 +32,6 @@ This entry is used by OpenOCD code to invoke other stub entries and allocate memory for them. */ -#define LOG_LOCAL_LEVEL CONFIG_LOG_DEFAULT_LEVEL #include "esp_log.h" const static char *TAG = "esp_dbg_stubs"; diff --git a/components/esp_system/stack_check.c b/components/esp_system/stack_check.c index cffff6555a..50822f7baa 100644 --- a/components/esp_system/stack_check.c +++ b/components/esp_system/stack_check.c @@ -18,7 +18,6 @@ #if CONFIG_COMPILER_STACK_CHECK -#define LOG_LOCAL_LEVEL CONFIG_LOG_DEFAULT_LEVEL #include "esp_log.h" const static char *TAG = "stack_chk"; diff --git a/components/pthread/pthread.c b/components/pthread/pthread.c index 1d64cddcc3..c31ed9f68a 100644 --- a/components/pthread/pthread.c +++ b/components/pthread/pthread.c @@ -31,7 +31,6 @@ #include "pthread_internal.h" #include "esp_pthread.h" -#define LOG_LOCAL_LEVEL CONFIG_LOG_DEFAULT_LEVEL #include "esp_log.h" const static char *TAG = "pthread"; diff --git a/components/pthread/pthread_cond_var.c b/components/pthread/pthread_cond_var.c index bb3a883c46..7ddb8530c2 100644 --- a/components/pthread/pthread_cond_var.c +++ b/components/pthread/pthread_cond_var.c @@ -30,7 +30,6 @@ #include #include -#define LOG_LOCAL_LEVEL CONFIG_LOG_DEFAULT_LEVEL #include "esp_log.h" const static char *TAG = "esp_pthread"; diff --git a/components/pthread/test/test_pthread_cxx.cpp b/components/pthread/test/test_pthread_cxx.cpp index 69fe3a241e..cb92f14c84 100644 --- a/components/pthread/test/test_pthread_cxx.cpp +++ b/components/pthread/test/test_pthread_cxx.cpp @@ -8,7 +8,6 @@ #if __GTHREADS && __GTHREADS_CXX0X -#define LOG_LOCAL_LEVEL CONFIG_LOG_DEFAULT_LEVEL #include "esp_log.h" const static char *TAG = "pthread_test";