Commit 40d82355 authored by Robert Schmidt's avatar Robert Schmidt

Increase log buffer: handle large log messages

parent af04fa90
...@@ -80,7 +80,7 @@ extern "C" { ...@@ -80,7 +80,7 @@ extern "C" {
* @brief the macros that describe the maximum length of LOG * @brief the macros that describe the maximum length of LOG
* @{*/ * @{*/
#define MAX_LOG_TOTAL 1500 /*!< \brief the maximum length of a log */ #define MAX_LOG_TOTAL 16384 /*!< \brief the maximum length of a log */
/* @}*/ /* @}*/
/** @defgroup _log_level Message levels defined by LOG /** @defgroup _log_level Message levels defined by LOG
......
...@@ -181,8 +181,7 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP, ...@@ -181,8 +181,7 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
if ((slot == 0) && (frame & 127) == 0) { if ((slot == 0) && (frame & 127) == 0) {
char stats_output[16384]; char stats_output[16000] = {0};
stats_output[0] = '\0';
dump_mac_stats(RC.nrmac[module_idP], stats_output, sizeof(stats_output), true); dump_mac_stats(RC.nrmac[module_idP], stats_output, sizeof(stats_output), true);
LOG_I(NR_MAC, "Frame.Slot %d.%d\n%s\n", frame, slot, stats_output); LOG_I(NR_MAC, "Frame.Slot %d.%d\n%s\n", frame, slot, stats_output);
} }
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
extern RAN_CONTEXT_t RC; extern RAN_CONTEXT_t RC;
#define MACSTATSSTRLEN 65536 #define MACSTATSSTRLEN 16000
void *nrmac_stats_thread(void *arg) { void *nrmac_stats_thread(void *arg) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment