diff --git a/Kconfig b/Kconfig index e13c404a..7a6feeaa 100644 --- a/Kconfig +++ b/Kconfig @@ -265,7 +265,7 @@ config MEM_LEAKCHECK default n depends on DEBUG_VERSION && MEM_DEBUG help - Answer Y to enable record the LR of Function call stack of Mem operation, it can check the mem leak through the infomations of mem node. + Answer Y to enable record the LR of Function call stack of Mem operation, it can check the mem leak through the informations of mem node. config BASE_MEM_NODE_INTEGRITY_CHECK bool "Enable integrity check or not" default n diff --git a/apps/shell/src/shcmd.c b/apps/shell/src/shcmd.c index 5142153c..e51dee3d 100644 --- a/apps/shell/src/shcmd.c +++ b/apps/shell/src/shcmd.c @@ -377,7 +377,7 @@ static int OsTabMatchFile(char *cmdKey, unsigned int *len) * Description: Pass in the string and clear useless space ,which include: * 1) The overmatch space which is not be marked by Quote's area * Squeeze the overmatch space into one space - * 2) Clear all space before first valid charatctor + * 2) Clear all space before first valid character * Input: cmdKey : Pass in the buff string, which is ready to be operated * cmdOut : Pass out the buffer string ,which has already been operated * size : cmdKey length @@ -406,17 +406,17 @@ unsigned int OsCmdKeyShift(const char *cmdKey, char *cmdOut, unsigned int size) /* Backup the 'output' start address */ outputBak = output; - /* Scan each charactor in 'cmdKey',and squeeze the overmuch space and ignore invalid charactor */ + /* Scan each character in 'cmdKey',and squeeze the overmuch space and ignore invalid character */ for (; *cmdKey != '\0'; cmdKey++) { /* Detected a Double Quotes, switch the matching status */ if (*(cmdKey) == '\"') { SWITCH_QUOTES_STATUS(quotes); } - /* Ignore the current charactor in following situation */ + /* Ignore the current character in following situation */ /* 1) Quotes matching status is FALSE (which said that the space is not been marked by double quotes) */ - /* 2) Current charactor is a space */ - /* 3) Next charactor is a space too, or the string is been seeked to the end already(\0) */ - /* 4) Invalid charactor, such as single quotes */ + /* 2) Current character is a space */ + /* 3) Next character is a space too, or the string is been seeked to the end already(\0) */ + /* 4) Invalid character, such as single quotes */ if ((*cmdKey == ' ') && ((*(cmdKey + 1) == ' ') || (*(cmdKey + 1) == '\0')) && QUOTES_STATUS_CLOSE(quotes)) { continue; } @@ -430,7 +430,7 @@ unsigned int OsCmdKeyShift(const char *cmdKey, char *cmdOut, unsigned int size) /* Restore the 'output' start address */ output = outputBak; len = strlen(output); - /* Clear the space which is located at the first charactor in buffer */ + /* Clear the space which is located at the first character in buffer */ if (*output == ' ') { output++; len--; diff --git a/apps/shell/src/shmsg.c b/apps/shell/src/shmsg.c index 40a18d7c..0fb2b69d 100644 --- a/apps/shell/src/shmsg.c +++ b/apps/shell/src/shmsg.c @@ -334,12 +334,12 @@ char *GetCmdName(const char *cmdline, unsigned int len) /* If reach a double quotes, switch the quotes matching status */ if (*tmpStr == '\"') { SWITCH_QUOTES_STATUS(quotes); - /* Ignore the double quote charactor itself */ + /* Ignore the double quote character itself */ tmpStr++; continue; } /* If detected a space which the quotes matching status is false */ - /* which said has detected the first space for seperator, finish this scan operation */ + /* which said has detected the first space for separator, finish this scan operation */ if ((*tmpStr == ' ') && (QUOTES_STATUS_CLOSE(quotes))) { break; } @@ -503,7 +503,7 @@ unsigned int PreHandleCmdline(const char *input, char **output, unsigned int *ou *output = shiftStr; *outputlen = shiftLen; - /* Check and parse "./", located at the first two charaters of the cmd */ + /* Check and parse "./", located at the first two characters of the cmd */ if ((shiftLen > removeLen) && (shiftStr[0] == '.') && (shiftStr[1] == '/')) { execLen = strlen(execCmd); newLen = execLen + shiftLen - removeLen; /* i.e., newLen - execLen == shiftLen - removeLen */ diff --git a/apps/tftp/include/tftpc.h b/apps/tftp/include/tftpc.h index 3d0bf568..f99454c2 100644 --- a/apps/tftp/include/tftpc.h +++ b/apps/tftp/include/tftpc.h @@ -114,7 +114,7 @@ typedef enum tagTFTPC_OpCode { TFTPC_OP_RRQ = 1, /* read request */ TFTPC_OP_WRQ, /* write request */ TFTPC_OP_DATA, /* data packet */ - TFTPC_OP_ACK, /* acknowledgement */ + TFTPC_OP_ACK, /* acknowledgment */ TFTPC_OP_ERROR, /* error code */ TFTPC_OP_OPT /* option code */ } TFTPC_OPCODE_E; diff --git a/apps/tftp/src/main.c b/apps/tftp/src/main.c index 4a476c74..c652821d 100644 --- a/apps/tftp/src/main.c +++ b/apps/tftp/src/main.c @@ -50,11 +50,11 @@ static char *TftpError[] = { "Error while sending data to the peer\n", "Requested file is not found\n", "This is the error sent by the server when hostname cannot be resolved\n", - "Input paramters passed to TFTP interfaces are invalid\n", + "Input parameters passed to TFTP interfaces are invalid\n", "Error detected in TFTP packet or the error received from the TFTP server\n", "Error during packet synhronization while sending or unexpected packet is received\n", "File size limit crossed, Max block can be 0xFFFF, each block containing 512 bytes\n", - "File name lenght greater than 256\n", + "File name length greater than 256\n", "Hostname IP is not valid\n", "TFTP server returned file access error\n", "TFTP server returned error signifying that the DISK is full to write\n", @@ -66,11 +66,11 @@ static char *TftpError[] = { "File create error\n", "File write error\n", "Max time expired while waiting for file to be recived\n", - "Error when the received packet is less than 4bytes(error lenght) or greater than 512bytes\n", + "Error when the received packet is less than 4bytes(error length) or greater than 512bytes\n", "Returned by TFTP server for protocol user error\n", "The destination file path length greater than 256\n", "Returned by TFTP server for undefined transfer ID\n", - "IOCTL fucntion failed at TFTP client while setting the socket to non-block\n", + "IOCTL function failed at TFTP client while setting the socket to non-block\n", }; #ifndef ARRAY_SIZE diff --git a/apps/tftp/src/tftpc.c b/apps/tftp/src/tftpc.c index b78bd45f..725a0fbb 100644 --- a/apps/tftp/src/tftpc.c +++ b/apps/tftp/src/tftpc.c @@ -189,7 +189,7 @@ u32_t lwip_tftp_recv_from_server(s32_t iSockNum, u32_t *pulSize, TFTPC_PACKET_S if (iRet == -1) { return TFTPC_SELECT_ERROR; } else if (iRet == 0) { - return TFTPC_TIMEOUT_ERROR; /* Select timeout occured */ + return TFTPC_TIMEOUT_ERROR; /* Select timeout occurred */ } if (!FD_ISSET(iSockNum, &stReadfds)) { @@ -268,7 +268,7 @@ u32_t lwip_tftp_recv_from_server(s32_t iSockNum, u32_t *pulSize, TFTPC_PACKET_S *pulSize = (u32_t)iRet; /* If received packet is first block of data(for get operation) or if - received packet is acknowledgement for write request (put operation) + received packet is acknowledgment for write request (put operation) store the received port number */ if (((usOpcode == TFTPC_OP_DATA) && (ntohs(pstRecvBuf->u.stTFTP_Data.usBlknum) == 1)) || @@ -687,7 +687,7 @@ u32_t lwip_tftp_get_file_by_filename(u32_t ulHostAddr, ulErrCode = lwip_tftp_recv_from_server(iSockNum, &ulRecvSize, pstRecvBuf, &ulIgnorePkt, &stServerAddr, pstSendBuf); - /* If select timeout occured */ + /* If select timeout occurred */ if (ulErrCode == TFTPC_TIMEOUT_ERROR) { ulTotalTime++; if (ulTotalTime < TFTPC_MAX_SEND_REQ_ATTEMPTS) { @@ -982,7 +982,7 @@ u32_t lwip_tftp_put_file_by_filename(u32_t ulHostAddr, u16_t usTftpServPort, u8_ return TFTPC_MEMALLOC_ERROR; } - /* First time intialize the buffer */ + /* First time initialize the buffer */ (void)memset_s((void *)pstSendBuf, sizeof(TFTPC_PACKET_S), 0, sizeof(TFTPC_PACKET_S)); /* The destination path can only be one of the following: @@ -1221,7 +1221,7 @@ u32_t lwip_tftp_inner_put_file(s32_t iSockNum, return TFTPC_MEMALLOC_ERROR; } - /* First time intialize the buffer */ + /* First time initialize the buffer */ (void)memset_s((void *)pstRecvBuf, sizeof(TFTPC_PACKET_S), 0, sizeof(TFTPC_PACKET_S)); /* Initialize from address to the server address at first */ @@ -1235,7 +1235,7 @@ u32_t lwip_tftp_inner_put_file(s32_t iSockNum, ulError = lwip_tftp_recv_from_server(iSockNum, &ulPktSize, pstRecvBuf, &ulIgnorePkt, pstServerAddr, pstSendBuf); - /* If select timeout occured */ + /* If select timeout occurred */ if (ulError == TFTPC_TIMEOUT_ERROR) { ulTotalTime++; if (ulTotalTime < TFTPC_MAX_SEND_REQ_ATTEMPTS) { @@ -1526,7 +1526,7 @@ u32_t lwip_tftp_get_file_by_filename_to_rawmem(u32_t ulHostAddr, ulErrCode = lwip_tftp_recv_from_server(iSockNum, &ulRecvSize, pstRecvBuf, &ulIgnorePkt, &stServerAddr, pstSendBuf); - /* If select timeout occured */ + /* If select timeout occurred */ if (ulErrCode == TFTPC_TIMEOUT_ERROR) { ulTotalTime++; if (ulTotalTime < TFTPC_MAX_SEND_REQ_ATTEMPTS) { diff --git a/arch/arm/arm/include/los_atomic.h b/arch/arm/arm/include/los_atomic.h index 702ea78e..6d79cf94 100644 --- a/arch/arm/arm/include/los_atomic.h +++ b/arch/arm/arm/include/los_atomic.h @@ -246,7 +246,7 @@ STATIC INLINE INT32 LOS_AtomicIncRet(Atomic *v) * @brief Atomic auto-decrement. * * @par Description: - * This API is used to implementating the atomic auto-decrement. + * This API is used to implement the atomic auto-decrement. * @attention *