Обновление

This commit is contained in:
cfif 2026-03-11 12:30:57 +03:00
parent b42c46f89a
commit c964190e8b
2 changed files with 4 additions and 3 deletions

View File

@ -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[];

View File

@ -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;