diff --git a/Inc/LoggerInterface.h b/Inc/LoggerInterface.h index d5bf2b9..7aeeca9 100644 --- a/Inc/LoggerInterface.h +++ b/Inc/LoggerInterface.h @@ -12,7 +12,7 @@ #define MAX_COUNT_BUF_LOG 10 #define MAX_LEN_PRINTF_BUF_LOG 256 -#define MAX_LEN_LOGGER_BUF_LOG 128 +#define MAX_LEN_LOGGER_BUF_LOG 256 #define MAX_LEN_BUF_NAME_LOG 16 typedef enum { @@ -37,7 +37,8 @@ typedef void (*LoggerGenericMethod)( typedef uint8_t * (*getMemPrintfBufLogMethod)( void *env, const char *authorStatic, - const uint8_t authorLen + const uint8_t authorLen, + uint16_t offset ); extern tStringStatic LOGGER_LEVEL_NAMES[]; diff --git a/Src/LoggerPrintf.c b/Src/LoggerPrintf.c index af4867f..c526953 100644 --- a/Src/LoggerPrintf.c +++ b/Src/LoggerPrintf.c @@ -756,7 +756,7 @@ void LoggerPrintf( // LoggerInfo(logger, "ss", "", 0); //char str[128]; - char *str = (char *) logger->getMemPrintfBufLog(logger->env, authorStatic, authorLen); + char *str = (char *) logger->getMemPrintfBufLog(logger->env, authorStatic, authorLen, MAX_LEN_LOGGER_BUF_LOG); int result; va_list args;