diff --git a/src/util/src/tlog.c b/src/util/src/tlog.c index 20607d8cf8b3b7049aaab017e203abeb39699ca9..aae716d2710c4b01fd4c7db32b61714bd3332a8e 100644 --- a/src/util/src/tlog.c +++ b/src/util/src/tlog.c @@ -560,7 +560,7 @@ static int32_t taosPushLogBuffer(SLogBuff *tLogBuff, char *msg, int32_t msgLen) remainSize = (start > end) ? (end - start - 1) : (start + LOG_BUF_SIZE(tLogBuff) - end - 1); if (lostLine > 0) { - sprintf(tmpBuf, "\n...Lost %"PRId64" lines here...\n", lostLine); + sprintf(tmpBuf, "...Lost %"PRId64" lines here...\n", lostLine); tmpBufLen = strlen(tmpBuf); } @@ -617,7 +617,7 @@ static void *taosAsyncOutputLog(void *param) { SLogBuff *tLogBuff = (SLogBuff *)param; int32_t log_size = 0; - char tempBuffer[TSDB_DEFAULT_LOG_BUF_UNIT]; + char tempBuffer[TSDB_DEFAULT_LOG_BUF_SIZE]; while (1) { tsem_wait(&(tLogBuff->buffNotEmpty));