mirror of
https://github.com/Ascend/ascend-docker-runtime.git
synced 2025-10-19 05:34:37 +08:00
Match-id-82544eda218c1088bfd0b9d0597377b0bb6a031d
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
#include "securec.h"
|
||||
#include "logger.h"
|
||||
|
||||
#define LOG_LENGTH 1024
|
||||
|
||||
static bool g_checkWgroup = true;
|
||||
|
||||
char *FormatLogMessage(char *format, ...)
|
||||
@@ -29,7 +31,7 @@ char *FormatLogMessage(char *format, ...)
|
||||
va_list list;
|
||||
// 获取格式化后字符串的长度
|
||||
va_start(list, format);
|
||||
char buff[1024] = {0};
|
||||
char buff[LOG_LENGTH] = {0};
|
||||
int ret = vsnprintf_s(buff, sizeof(buff), sizeof(buff) - 1, format, list);
|
||||
va_end(list);
|
||||
if (ret <= 0) {
|
||||
|
Reference in New Issue
Block a user