Home
last modified time | relevance | path

Searched refs:logLen (Results 1 – 2 of 2) sorted by relevance

/kernel/liteos_a/shell/full/src/cmds/
Ddmesg.c373 STATIC VOID OsBufFullWrite(const CHAR *dst, UINT32 logLen) in OsBufFullWrite() argument
380 if (!logLen || (dst == NULL)) { in OsBufFullWrite()
383 if (logLen > bufSize) { /* full re-write */ in OsBufFullWrite()
395 OsBufFullWrite(dst + bufSize, logLen - bufSize); in OsBufFullWrite()
397 if (logLen > (bufSize - tail)) { /* need cycle back to start */ in OsBufFullWrite()
403 ret = memcpy_s(buf, bufSize, dst + bufSize - tail, logLen - (bufSize - tail)); in OsBufFullWrite()
409 g_dmesgInfo->logTail = logLen - (bufSize - tail); in OsBufFullWrite()
412 ret = memcpy_s(buf + tail, bufSize - tail, dst, logLen); in OsBufFullWrite()
417 g_dmesgInfo->logTail += logLen; in OsBufFullWrite()
426 STATIC VOID OsWriteTailToHead(const CHAR *dst, UINT32 logLen) in OsWriteTailToHead() argument
[all …]
/kernel/liteos_a/shell/full/include/
Ddmesg_pri.h60 extern INT32 OsLogMemcpyRecord(const CHAR *buf, UINT32 logLen);