Increase log buffer: handle large log messages

This commit is contained in:
Robert Schmidt
2022-09-19 11:39:09 +02:00
parent af04fa90c1
commit 40d8235500
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ extern "C" {
* @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
+1 -2
View File
@@ -181,8 +181,7 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
if ((slot == 0) && (frame & 127) == 0) {
char stats_output[16384];
stats_output[0] = '\0';
char stats_output[16000] = {0};
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);
}
+1 -1
View File
@@ -45,7 +45,7 @@
extern RAN_CONTEXT_t RC;
#define MACSTATSSTRLEN 65536
#define MACSTATSSTRLEN 16000
void *nrmac_stats_thread(void *arg) {