fix:修复拼写错误
Signed-off-by: x_xiny <1301913191@qq.com> Change-Id: I1cc4897e5d37dd98696221f0cc70220cef45e7d4
This commit is contained in:
parent
0f75bf01a6
commit
bc70db58a7
4
Kconfig
4
Kconfig
|
@ -189,7 +189,7 @@ config DEBUG_VERSION
|
|||
It also means you do not want to use debug modules, like shell,telnet,tftp,nfs and
|
||||
memory check, etc.
|
||||
If you select this option that means you enable a debug version for LiteOS.
|
||||
That means you want a opposite behaviour compared to release version.
|
||||
That means you want an opposite behaviour compared to release version.
|
||||
|
||||
config DEBUG_KERNEL
|
||||
bool "Enable Debug LiteOS Kernel Resource"
|
||||
|
@ -198,7 +198,7 @@ config DEBUG_KERNEL
|
|||
help
|
||||
If you select this option that means you enable debugging kernel resource.
|
||||
It also means you want to get queue, mutex, semaphore, memory debug information.
|
||||
That means you want a opposite behaviour compared to release version.
|
||||
That means you want an opposite behaviour compared to release version.
|
||||
|
||||
config DEBUG_QUEUE
|
||||
bool "Enable Queue Debugging"
|
||||
|
|
2
Makefile
2
Makefile
|
@ -97,7 +97,7 @@ Targets:
|
|||
cleanall: clean all build outputs
|
||||
all: make liteos kernel image and rootfs image (Default target)
|
||||
$(APPS): build all apps
|
||||
$(ROOTFS): make a original rootfs image
|
||||
$(ROOTFS): make an original rootfs image
|
||||
$(LITEOS_LIBS_TARGET): compile all kernel modules (libraries)
|
||||
$(LITEOS_TARGET): make liteos kernel image
|
||||
update_config: update product kernel config (use menuconfig)
|
||||
|
|
|
@ -98,7 +98,7 @@ extern char *rindex(const char *s, int c);
|
|||
* @ingroup fs
|
||||
*
|
||||
* @par Description:
|
||||
* The set_label() function shall set the value of a global varible,
|
||||
* The set_label() function shall set the value of a global variable,
|
||||
* the value will be used to set the label of SD card in format().
|
||||
*
|
||||
* @param name [IN] label to set, the length must be less than 12
|
||||
|
|
|
@ -351,7 +351,7 @@ static INT32 BcacheSyncBlock(OsBcache *bc, OsBcacheBlock *block)
|
|||
UINT32 len, start, end;
|
||||
|
||||
if (block->modified == TRUE) {
|
||||
D(("bcache writting block = %llu\n", block->num));
|
||||
D(("bcache writing block = %llu\n", block->num));
|
||||
|
||||
ret = FindFlagPos(block->flag, bc->sectorPerBlock >> UNINT_LOG2_SHIFT, &start, &end);
|
||||
if (ret == ENOERR) {
|
||||
|
|
|
@ -48,7 +48,7 @@ typedef struct {
|
|||
} StackInfo;
|
||||
|
||||
#define OS_INVALID_WATERLINE 0xFFFFFFFF
|
||||
#define OS_STACK_MAGIC_CHECK(topstack) (*(UINTPTR *)(topstack) == OS_STACK_MAGIC_WORD) /* 1:magic valid 0:unvalid */
|
||||
#define OS_STACK_MAGIC_CHECK(topstack) (*(UINTPTR *)(topstack) == OS_STACK_MAGIC_WORD) /* 1:magic valid 0:invalid */
|
||||
|
||||
extern VOID OsExcStackInfo(VOID);
|
||||
extern VOID OsExcStackInfoReg(const StackInfo *stackInfo, UINT32 stackNum);
|
||||
|
@ -81,4 +81,4 @@ extern UINT32 OsStackWaterLineGet(const UINTPTR *stackBottom, const UINTPTR *sta
|
|||
#endif /* __cplusplus */
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* _LOS_STACK_INFO_PRI_H */
|
||||
#endif /* _LOS_STACK_INFO_PRI_H */
|
||||
|
|
|
@ -87,7 +87,7 @@ STATIC INLINE CHAR *OsLockDepErrorStringGet(enum LockDepErrType type)
|
|||
errorString = "lockdep overflow";
|
||||
break;
|
||||
default:
|
||||
errorString = "unknow error code";
|
||||
errorString = "unknown error code";
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -313,7 +313,7 @@ VOID OsLockDepCheckOut(SPIN_LOCK_S *lock)
|
|||
/* record lock holding time */
|
||||
heldlocks[depth].holdTime = OsLockDepGetCycles() - heldlocks[depth].holdTime;
|
||||
|
||||
/* if unlock a older lock, needs move heldLock records */
|
||||
/* if unlock an older lock, needs move heldLock records */
|
||||
while (depth < lockDep->lockDepth - 1) {
|
||||
lockDep->heldLocks[depth] = lockDep->heldLocks[depth + 1];
|
||||
depth++;
|
||||
|
|
|
@ -1208,7 +1208,7 @@ LITE_OS_SEC_TEXT STATIC UINT32 LiteIpcMsgHandle(IpcContent *con)
|
|||
}
|
||||
content->outMsg = msg;
|
||||
if ((content->outMsg->type < 0) || (content->outMsg->type >= MT_DEATH_NOTIFY)) {
|
||||
PRINT_ERR("LiteIpc unknow msg type:%d\n", content->outMsg->type);
|
||||
PRINT_ERR("LiteIpc unknown msg type:%d\n", content->outMsg->type);
|
||||
ret = -EINVAL;
|
||||
goto BUFFER_FREE;
|
||||
}
|
||||
|
|
|
@ -90,10 +90,10 @@ extern VOID *LOS_SoLoad(CHAR *elfFileName);
|
|||
|
||||
/**
|
||||
* @ingroup dynload
|
||||
* @brief Load a object file.
|
||||
* @brief Load an object file.
|
||||
*
|
||||
* @par Description:
|
||||
* This API is used to load a object file under a particular module file path.
|
||||
* This API is used to load an object file under a particular module file path.
|
||||
* @attention
|
||||
* <ul>
|
||||
* <li>The parameter passed to this API should be a legal path of an object file.</li>
|
||||
|
|
|
@ -331,9 +331,9 @@ extern TRACE_EVENT_HOOK g_traceEventHook;
|
|||
* <li>The first param is treat as key, keep at least this param if you want trace this event.</li>
|
||||
* <li>All parameters were treated as UINTPTR.</li>
|
||||
* </ul>
|
||||
* eg. Trace a event as:
|
||||
* eg. Trace an event as:
|
||||
* #define TASK_PRIOSET_PARAMS(taskId, taskStatus, oldPrio, newPrio) taskId, taskStatus, oldPrio, newPrio
|
||||
* eg. Not Trace a event as:
|
||||
* eg. Not Trace an event as:
|
||||
* #define TASK_PRIOSET_PARAMS(taskId, taskStatus, oldPrio, newPrio)
|
||||
* eg. Trace only you need parmas as:
|
||||
* #define TASK_PRIOSET_PARAMS(taskId, taskStatus, oldPrio, newPrio) taskId
|
||||
|
|
|
@ -1750,7 +1750,7 @@ LWIP_STATIC int osPingFunc(u32_t destip, u32_t cnt, u32_t interval, u32_t data_l
|
|||
PRINTK("\nPing: parameter problem ...");
|
||||
break;
|
||||
default :
|
||||
PRINTK("\nPing: unknow error ...");
|
||||
PRINTK("\nPing: unknown error ...");
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
|
@ -2371,7 +2371,7 @@ LWIP_STATIC int create_ping6_socket(u8_t type, const void *param)
|
|||
ret = lwip_setsockopt(sfd, SOL_SOCKET, SO_BINDTODEVICE, (char *)(param), strlen((char *)(param)));
|
||||
if (ret == -1) {
|
||||
(void)lwip_close(sfd);
|
||||
PRINTK("ping6: unknown iface %s\n", (char *)(param));
|
||||
PRINTK("ping6: unknownn iface %s\n", (char *)(param));
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -191,7 +191,7 @@ STATIC INT32 TelnetClose(struct file *file)
|
|||
}
|
||||
|
||||
/*
|
||||
* Description : When a command resolver task trys to read the telnet device,
|
||||
* Description : When a command resolver task tries to read the telnet device,
|
||||
* this method is called, and it will take out user's commands from the FIFO to run.
|
||||
* Return : -1 --- On failure
|
||||
* Non-negative integer --- length of commands taken out from the FIFO of the telnet device.
|
||||
|
@ -236,7 +236,7 @@ STATIC ssize_t TelnetRead(struct file *file, CHAR *buf, size_t bufLen)
|
|||
}
|
||||
|
||||
/*
|
||||
* Description : When a command resolver task trys to write command results to the telnet device,
|
||||
* Description : When a command resolver task tries to write command results to the telnet device,
|
||||
* just use lwIP send function to send out results.
|
||||
* Return : -1 --- buffer is NULL
|
||||
* Non-negative integer --- length of written data, maybe 0.
|
||||
|
|
|
@ -66,8 +66,8 @@ static UINT32 Testcase(VOID)
|
|||
|
||||
ret = LOS_TaskDelay(12); // 12, set delay time
|
||||
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
|
||||
if (g_testCount < 10) { // 10, if g_testCount < 10 set a erro code, then exit
|
||||
ICUNIT_GOTO_EQUAL(g_testCount, 10, g_testCount, EXIT); // 10, if g_testCount < 10 set a erro code, then exit
|
||||
if (g_testCount < 10) { // 10, if g_testCount < 10 set an erro code, then exit
|
||||
ICUNIT_GOTO_EQUAL(g_testCount, 10, g_testCount, EXIT); // 10, if g_testCount < 10 set an erro code, then exit
|
||||
}
|
||||
|
||||
EXIT:
|
||||
|
|
|
@ -63,7 +63,7 @@ static UINT32 Testcase(VOID)
|
|||
|
||||
ret = LOS_SwtmrTimeGet(swTmrID, &tick);
|
||||
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
|
||||
if (tick > 4) { // 4, if tick > 4, set a erro code, then exit
|
||||
if (tick > 4) { // 4, if tick > 4, set an erro code, then exit
|
||||
ICUNIT_GOTO_EQUAL(1, 0, tick, EXIT);
|
||||
}
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ static UINT32 Testcase(VOID)
|
|||
rc = pthread_mutexattr_getprioceiling(&mta, &prioceiling);
|
||||
ICUNIT_GOTO_EQUAL(rc, ENOERR, rc, EXIT);
|
||||
|
||||
/* Make sure that prioceiling is withing the legal SCHED_FIFO boundries. */
|
||||
/* Make sure that prioceiling is within the legal SCHED_FIFO boundries. */
|
||||
if (prioceiling != i) {
|
||||
rc = pthread_mutexattr_destroy(&mta);
|
||||
ICUNIT_GOTO_EQUAL(rc, ENOERR, rc, EXIT);
|
||||
|
@ -101,4 +101,4 @@ VOID ItPosixMux016(void)
|
|||
#if __cplusplus
|
||||
}
|
||||
#endif /* __cpluscplus */
|
||||
#endif /* __cpluscplus */
|
||||
#endif /* __cpluscplus */
|
||||
|
|
|
@ -469,7 +469,7 @@ int RemoveDir(const char *dir)
|
|||
|
||||
rmdir(dir); /* now dir is empty */
|
||||
} else {
|
||||
perror("unknow file type!");
|
||||
perror("unknown file type!");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue