From bc70db58a75f1065a7b872c32f506b96ad331db3 Mon Sep 17 00:00:00 2001 From: x_xiny <1301913191@qq.com> Date: Mon, 14 Mar 2022 22:22:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E6=8B=BC=E5=86=99?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: x_xiny <1301913191@qq.com> Change-Id: I1cc4897e5d37dd98696221f0cc70220cef45e7d4 --- Kconfig | 4 ++-- Makefile | 2 +- fs/include/fs/fs_operation.h | 2 +- fs/vfs/bcache/src/bcache.c | 2 +- kernel/base/include/los_stackinfo_pri.h | 4 ++-- kernel/base/mp/los_lockdep.c | 4 ++-- kernel/extended/liteipc/hm_liteipc.c | 2 +- kernel/include/los_ld_elflib.h | 4 ++-- kernel/include/los_trace.h | 4 ++-- net/lwip-2.1/enhancement/src/api_shell.c | 4 ++-- net/telnet/src/telnet_dev.c | 4 ++-- .../sample/kernel_base/core/swtmr/full/It_los_swtmr_037.c | 4 ++-- .../sample/kernel_base/core/swtmr/full/It_los_swtmr_066.c | 2 +- .../kernel/sample/posix/mutex/smoke/It_posix_mutex_016.c | 4 ++-- testsuites/unittest/common/osTest.cpp | 2 +- 15 files changed, 24 insertions(+), 24 deletions(-) diff --git a/Kconfig b/Kconfig index 7a6feeaa..8041b61d 100644 --- a/Kconfig +++ b/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" diff --git a/Makefile b/Makefile index 9c026c66..8122156f 100644 --- a/Makefile +++ b/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) diff --git a/fs/include/fs/fs_operation.h b/fs/include/fs/fs_operation.h index b96f0c77..11ea049a 100644 --- a/fs/include/fs/fs_operation.h +++ b/fs/include/fs/fs_operation.h @@ -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 diff --git a/fs/vfs/bcache/src/bcache.c b/fs/vfs/bcache/src/bcache.c index b0841f41..238bf132 100644 --- a/fs/vfs/bcache/src/bcache.c +++ b/fs/vfs/bcache/src/bcache.c @@ -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) { diff --git a/kernel/base/include/los_stackinfo_pri.h b/kernel/base/include/los_stackinfo_pri.h index 2698433e..3a8512d3 100644 --- a/kernel/base/include/los_stackinfo_pri.h +++ b/kernel/base/include/los_stackinfo_pri.h @@ -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 */ \ No newline at end of file +#endif /* _LOS_STACK_INFO_PRI_H */ diff --git a/kernel/base/mp/los_lockdep.c b/kernel/base/mp/los_lockdep.c index dae4e0ac..24e6b301 100644 --- a/kernel/base/mp/los_lockdep.c +++ b/kernel/base/mp/los_lockdep.c @@ -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++; diff --git a/kernel/extended/liteipc/hm_liteipc.c b/kernel/extended/liteipc/hm_liteipc.c index a406ffeb..5293552a 100644 --- a/kernel/extended/liteipc/hm_liteipc.c +++ b/kernel/extended/liteipc/hm_liteipc.c @@ -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; } diff --git a/kernel/include/los_ld_elflib.h b/kernel/include/los_ld_elflib.h index 9187f7e4..b85f7934 100644 --- a/kernel/include/los_ld_elflib.h +++ b/kernel/include/los_ld_elflib.h @@ -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 *