纠正一些错误单词拼写

    鸿蒙研究站 | http://weharmonyos.com (国内)
              | https://weharmony.github.io (国外)
    论坛 | http://bbs.weharmonyos.com
    文档中心 | http://open.weharmonyos.com
    参考手册 | http://doxygen.weharmonyos.com
上级 fd4e7280
......@@ -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 informations 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 information of mem node.
config BASE_MEM_NODE_INTEGRITY_CHECK
bool "Enable integrity check or not"
default n
......
......@@ -422,7 +422,7 @@ static void DoCmdExec(const char *cmdName, const char *cmdline, unsigned int len
forkPid = fork();
if (forkPid < 0) {
printf("Faild to fork from shell\n");
printf("Failed to fork from shell\n");
return;
} else if (forkPid == 0) {
ChildExec(cmdParsed->paramArray[0], cmdParsed->paramArray, foreground);
......
### 群
<img src="https://weharmonyos.oss-cn-hangzhou.aliyuncs.com/resources/common/qun.png" alt="" width="400px" height="420px" align="bottom" />
<img src="https://weharmonyos.oss-cn-hangzhou.aliyuncs.com/resources/common/qq.png" alt="" width="400px" height="420px" align="bottom" />
### 温暖记录
### 温暖记录
<img src="https://weharmonyos.oss-cn-hangzhou.aliyuncs.com/resources/donate/1.png" alt="" width="400px" height="420px" align="bottom" />
<img src="https://weharmonyos.oss-cn-hangzhou.aliyuncs.com/resources/donate/2.png" alt="" width="400px" height="420px" align="bottom" />
......@@ -17,6 +12,7 @@
<img src="https://weharmonyos.oss-cn-hangzhou.aliyuncs.com/resources/donate/10.png" alt="" width="400px" height="420px" align="bottom" />
<img src="https://weharmonyos.oss-cn-hangzhou.aliyuncs.com/resources/donate/11.png" alt="" width="400px" height="420px" align="bottom" />
<img src="https://weharmonyos.oss-cn-hangzhou.aliyuncs.com/resources/donate/12.png" alt="" width="400px" height="420px" align="bottom" />
<img src="https://weharmonyos.oss-cn-hangzhou.aliyuncs.com/resources/donate/13.png" alt="" width="400px" height="420px" align="bottom" />
### 捐助方式
......
......@@ -5499,7 +5499,7 @@ diff -Nupr old/fs/jffs2/readinode.c new/fs/jffs2/readinode.c
break;
default:
+ JFFS2_ERROR("Unknow f->inocache->state %d!\n", f->inocache->state);
+ JFFS2_ERROR("Unknown f->inocache->state %d!\n", f->inocache->state);
BUG();
}
}
......
......@@ -137,7 +137,7 @@ void ProcFdInit(void)
{
struct ProcDirEntry *pde = CreateProcEntry("fd", 0, NULL);
if (pde == NULL) {
PRINT_ERR("creat /proc/fd error.\n");
PRINT_ERR("create /proc/fd error.\n");
return;
}
......
......@@ -91,7 +91,7 @@ void ProcMountsInit(void)
{
struct ProcDirEntry *pde = CreateProcEntry("mounts", 0, NULL);
if (pde == NULL) {
PRINT_ERR("creat mounts error!\n");
PRINT_ERR("create mounts error!\n");
return;
}
......
......@@ -78,7 +78,7 @@ void ProcUptimeInit(void)
{
struct ProcDirEntry *pde = CreateProcEntry("uptime", 0, NULL);
if (pde == NULL) {
PRINT_ERR("creat /proc/uptime error!\n");
PRINT_ERR("create /proc/uptime error!\n");
return;
}
......
......@@ -1274,7 +1274,7 @@ STATIC CONSOLE_CB *OsConsoleCreate(UINT32 consoleID, const CHAR *deviceName)
ret = (INT32)LOS_SemCreate(1, &consoleCB->consoleSem);//创建控制台信号量
if (ret != LOS_OK) {
PRINT_ERR("creat sem for uart failed\n");
PRINT_ERR("create sem for uart failed\n");
goto ERR_WITH_BUF;
}
......
......@@ -1107,7 +1107,7 @@ LITE_OS_SEC_TEXT STATIC UINT32 CheckPara(IpcContent *content, UINT32 *dstTid)
#endif
break;
default:
PRINT_DEBUG("Unknow msg type:%d\n", msg->type);
PRINT_DEBUG("Unknown msg type:%d\n", msg->type);
return -EINVAL;
}
......@@ -1200,13 +1200,13 @@ LITE_OS_SEC_TEXT STATIC UINT32 CheckRecievedMsg(IpcListNode *node, IpcContent *c
}
#if (USE_TIMESTAMP == 1)
if (node->msg.timestamp != content->outMsg->timestamp) {//检查时间戳
PRINT_ERR("Recieve a unmatch reply, drop it\n");
PRINT_ERR("Receive a unmatch reply, drop it\n");
ret = -EINVAL;
}
#else
if ((node->msg.code != content->outMsg->code) ||
(node->msg.target.token != content->outMsg->target.token)) {
PRINT_ERR("Recieve a unmatch reply, drop it\n");
PRINT_ERR("Receive a unmatch reply, drop it\n");
ret = -EINVAL;
}
#endif
......@@ -1214,7 +1214,7 @@ LITE_OS_SEC_TEXT STATIC UINT32 CheckRecievedMsg(IpcListNode *node, IpcContent *c
case MT_DEATH_NOTIFY:
break;
default:
PRINT_ERR("Unknow msg type:%d\n", node->msg.type);
PRINT_ERR("Unknown msg type:%d\n", node->msg.type);
ret = -EINVAL;
}
if (ret != LOS_OK) {
......@@ -1393,7 +1393,7 @@ LITE_OS_SEC_TEXT STATIC UINT32 HandleCmsCmd(CmsCmdContent *content)
}
return AddServiceAccess(localContent.taskID, localContent.serviceHandle);//双向绑定
default:
PRINT_DEBUG("Unknow cmd cmd:%d\n", localContent.cmd);
PRINT_DEBUG("Unknown cmd cmd:%d\n", localContent.cmd);
return -EINVAL;
}
return ret;
......@@ -1459,7 +1459,7 @@ LITE_OS_SEC_TEXT int LiteIpcIoctl(struct file *filep, int cmd, unsigned long arg
}
break;
default:
PRINT_ERR("Unknow liteipc ioctl cmd:%d\n", cmd);
PRINT_ERR("Unknown liteipc ioctl cmd:%d\n", cmd);
return -EINVAL;
}
return (INT32)ret;
......
......@@ -1326,7 +1326,7 @@ out:
} else if (ret == ERR_RTE) {
(void)snprintf_s(arp_cmd->cb_print_buf, PRINT_BUF_LEN, (PRINT_BUF_LEN - 1), "Network is unreachable\n");
} else {
(void)snprintf_s(arp_cmd->cb_print_buf, PRINT_BUF_LEN, (PRINT_BUF_LEN - 1), "Successed\n");
(void)snprintf_s(arp_cmd->cb_print_buf, PRINT_BUF_LEN, (PRINT_BUF_LEN - 1), "Succeeded\n");
}
}
#endif
......
......@@ -51,7 +51,7 @@ static UINT32 Testcase(void)
g_testCount = 0;
TEST_TASK_PARAM_INIT(task1, "it_smp_task_035", (TSK_ENTRY_FUNC)TaskF02Preempt, TASK_PRIO_TEST_TASK - 1);
/* creat preempt task */
/* create preempt task */
task1.usCpuAffiMask = 0;
ret = LOS_TaskCreate(&g_testTaskID01, &task1);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
......
......@@ -61,7 +61,7 @@ static UINT32 Testcase(void)
TEST_TASK_PARAM_INIT(task1, "it_smp_task_042", (TSK_ENTRY_FUNC)TaskF01, TASK_PRIO_TEST_TASK);
int i;
/* creat high prio task on every cores */
/* create high prio task on every cores */
for (i = 0; i < LOSCFG_KERNEL_CORE_NUM - 1; i++) {
/* take control of every cores */
task1.usCpuAffiMask = CPUID_TO_AFFI_MASK((ArchCurrCpuid() + i + 1) % (LOSCFG_KERNEL_CORE_NUM));
......
......@@ -59,7 +59,7 @@ static UINT32 Testcase(void)
TSK_INIT_PARAM_S task1 = { 0 };
g_testCount = 0;
// 5, lengh of the queue; 50, max queue msg size.
// 5, length of the queue; 50, max queue msg size.
ret = LOS_QueueCreate("queue", 5, &g_queue, 0, 50);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
......
......@@ -58,7 +58,7 @@ static UINT32 Testcase(void)
TSK_INIT_PARAM_S task1 = { 0 };
g_testCount = 0;
// 5, lengh of the queue; 50, max queue msg size.
// 5, length of the queue; 50, max queue msg size.
ret = LOS_QueueCreate("queue", 5, &g_queue, 0, 50);
TEST_TASK_PARAM_INIT(task1, "it_smp_task_063", (TSK_ENTRY_FUNC)TaskF01, TASK_PRIO_TEST_TASK - 1);
......
......@@ -72,7 +72,7 @@ static UINT32 Testcase(void)
TSK_INIT_PARAM_S task1 = { 0 };
g_testCount = 0;
// 5, lengh of the queue; 50, max queue msg size.
// 5, length of the queue; 50, max queue msg size.
ret = LOS_QueueCreate("queue", 5, &g_queue, 0, 50);
TEST_TASK_PARAM_INIT(task1, "it_smp_task_068", (TSK_ENTRY_FUNC)TaskF01, TASK_PRIO_TEST_TASK - 1);
......
......@@ -71,7 +71,7 @@ static UINT32 Testcase(void)
UINT32 ret;
TSK_INIT_PARAM_S task1 = { 0 };
g_testCount = 0;
// 5, lengh of the queue; 50, max queue msg size.
// 5, length of the queue; 50, max queue msg size.
ret = LOS_QueueCreate("queue", 5, &g_queue, 0, 50);
TEST_TASK_PARAM_INIT(task1, "it_smp_task_065", (TSK_ENTRY_FUNC)TaskF01, TASK_PRIO_TEST_TASK - 1);
......
......@@ -57,7 +57,7 @@ static UINT32 Testcase(void)
int i;
for (i = 0; i < LOSCFG_KERNEL_CORE_NUM; i++) {
/* creat core_num same priority tasks */
/* create core_num same priority tasks */
task1.usCpuAffiMask = 0;
ret = LOS_TaskCreate(&testTaskIDSmp[i], &task1);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
......@@ -72,7 +72,7 @@ static UINT32 Testcase(void)
timesliceCount2 = TestTickCountGet();
/* Check if task yield definitely successed */
/* Check if task yield definitely succeeded */
ICUNIT_GOTO_NOT_EQUAL(timesliceCount2, timesliceCount1, timesliceCount2 - timesliceCount1, EXIT);
for (i = 0; i < LOSCFG_KERNEL_CORE_NUM; i++) {
......
......@@ -115,7 +115,7 @@ VOID ItSuiteLosSem(void)
ItLosSem037();
ItLosSem038();
#ifndef LOSCFG_KERNEL_SMP_TASK_SYNC
// LOSCFG_KERNEL_SMP_TASK_SYNC is opened ,create task success is depend on created semaphore successed;
// LOSCFG_KERNEL_SMP_TASK_SYNC is opened ,create task success is depend on created semaphore succeeded;
ItLosSem039();
ItLosSem040();
ItLosSem041();
......
......@@ -39,7 +39,7 @@ extern "C" {
/* pthread_mutex_init 4-1.c
* Test that pthread_mutex_init()
* Upon succesful completion, it shall return a 0
* Upon successful completion, it shall return a 0
*
*/
static UINT32 Testcase(VOID)
......
......@@ -39,7 +39,7 @@ extern "C" {
/* pthread_mutex_destroy 3-1.c
* Test that pthread_mutex_destroy()
* Upon succesful completion, it shall return a 0
* Upon successful completion, it shall return a 0
*
*/
static UINT32 Testcase(VOID)
......
......@@ -43,7 +43,7 @@ extern "C" {
* source tree.
* Test that pthread_mutex_lock()
* Upon succesful completion, it shall return a 0
* Upon successful completion, it shall return a 0
*
*/
static UINT32 Testcase(VOID)
......
......@@ -42,7 +42,7 @@ extern "C" {
* shall release the mutex object 'mutex'.
* Steps:
* -- Initilize a mutex object
* -- initialize a mutex object
* -- Get the mutex using pthread_mutex_lock()
* -- Release the mutex using pthread_mutex_unlock()
* -- Try to get the mutex using pthread_mutex_trylock()
......
......@@ -39,7 +39,7 @@ extern "C" {
/* pthread_mutex_unlock 3-1.c
* Test that pthread_mutex_unlock()
* Upon succesful completion, it shall return zero
* Upon successful completion, it shall return zero
*
*/
static UINT32 Testcase(VOID)
......
......@@ -38,7 +38,7 @@ extern "C" {
/* pthread_mutex_trylock 3-1.c
* Test that pthread_mutex_trylock()
* Upon succesful completion, it shall return a 0
* Upon successful completion, it shall return a 0
*
*/
static UINT32 Testcase(VOID)
......
......@@ -43,7 +43,7 @@ extern "C" {
* -[EBUSY] The mutex could not be acquired because it was already locked.
* Steps:
* -- Initilize a mutex object
* -- initialize a mutex object
* -- Lock the mutex using pthread_mutex_lock()
* -- Try to lock the mutex using pthread_mutex_trylock() and expect EBUSY
*
......
......@@ -67,7 +67,7 @@ static UINT32 Testcase(VOID)
/*
* Check to make sure that 'value_ptr' that was passed to
* pthread_join() and the pthread_exit() return code that
* was used in the thread funciton are the same.
* was used in the thread function are the same.
*/
ICUNIT_ASSERT_EQUAL(valuePtr, PTHREAD_EXIT_VALUE, errno);
......
......@@ -366,7 +366,7 @@ VOID TestInitUartDev(VOID) {}
/* ****************************************
Function:Test_PartInit
Description: creat a partition for testing,partition num is 0,mount point is jffs0
Description: create a partition for testing,partition num is 0,mount point is jffs0
Input:
[1]type: "spinor"
[2]start_addr: the partition start address
......
......@@ -196,7 +196,7 @@ static void HandleServiceRegAndGet(int fd, IpcMsg *data)
}
}
}
printf("recieve service request, code:%d, service name:%s\n", data->code, info->serviceName);
printf("receive service request, code:%d, service name:%s\n", data->code, info->serviceName);
switch (data->code) {
case REG_CODE:
if (i == MAX_SREVICE_NUM) {
......
......@@ -162,8 +162,8 @@ static int TestCase(void)
exit(-1);
}
printf("1 pending=%d\n", pending.__bits[0]);
printf("1 oldmask=%d\n", oldmask.__bits[0]);
printf("1 pending=%lu\n", pending.__bits[0]);
printf("1 oldmask=%lu\n", oldmask.__bits[0]);
printf("before raise\n");
raise(SIGALRM);
printf("after raise\n");
......@@ -172,7 +172,7 @@ static int TestCase(void)
printf("errline = %d\n", __LINE__);
exit(-1);
}
printf("pending=%d,sigismem = %d\n", pending.__bits[0], sigismember(&pending, SIGALRM));
printf("pending=%d,sigismem = %lu\n", pending.__bits[0], sigismember(&pending, SIGALRM));
exit(0);
}
sleep(1);
......
......@@ -131,7 +131,7 @@ static int TestMultiPthreadFatherProcessExit()
sleep(1);
retValue = waitpid(fpids, &status, 0);
// grandchild process kill father process, so child process is recovered by init process
// child process doesn't receive termination singal from grandchild process
// child process doesn't receive termination signal from grandchild process
// so waitpid() returns -1
ICUNIT_ASSERT_EQUAL(retValue, -1, retValue);
exit(1);
......
......@@ -31,7 +31,7 @@
#include "it_test_signal.h"
#include "signal.h"
static void SigHandler(int sig) // źŴ
static void SigHandler(int sig) // źŴ
{
if (sig == SIGINT) {
printf("SIGINT sig\n");
......@@ -74,8 +74,8 @@ static int TestSigSuspend()
if (retValue != 0) {
exit(retValue);
}
printf("newset 1 = %x\n", newset.__bits[0]);
printf("old 1 = %x\n", old.__bits[0]);
printf("newset 1 = %lx\n", newset.__bits[0]);
printf("old 1 = %lx\n", old.__bits[0]);
retValue = sigemptyset(&newset);
if (retValue != 0) {
......@@ -89,8 +89,8 @@ static int TestSigSuspend()
if (retValue != 0) {
exit(retValue);
}
printf("newset 2 = %x\n", newset.__bits[0]);
printf("old 2 = %x\n", old.__bits[0]);
printf("newset 2 = %lx\n", newset.__bits[0]);
printf("old 2 = %lx\n", old.__bits[0]);
retValue = sigemptyset(&newset);
if (retValue != 0) {
......@@ -105,8 +105,8 @@ static int TestSigSuspend()
if (retValue != 0) {
exit(retValue);
}
printf("newset 1 = %x\n", newset.__bits[0]);
printf("old 1 = %x\n", old.__bits[0]);
printf("newset 1 = %lx\n", newset.__bits[0]);
printf("old 1 = %lx\n", old.__bits[0]);
retValue = sigemptyset(&wait);
if (retValue != 0) {
......@@ -116,7 +116,7 @@ static int TestSigSuspend()
if (retValue != 0) {
exit(retValue);
}
printf("wait = %x\n", wait.__bits[0]);
printf("wait = %lx\n", wait.__bits[0]);
if (sigsuspend(&wait) != -1) {
printf("sigsuspend error\n");
......@@ -126,14 +126,14 @@ static int TestSigSuspend()
if (retValue != 0) {
exit(retValue);
}
printf("old 2= %x\n", old.__bits[0]);
printf("old 2= %lx\n", old.__bits[0]);
sigset_t pending;
retValue = sigemptyset(&pending);
if (retValue != 0) {
exit(retValue);
}
printf("pending 1= %x\n", pending.__bits[0]);
printf("pending 1= %lx\n", pending.__bits[0]);
retValue = raise(SIGINT);
if (retValue != 0) {
exit(retValue);
......@@ -142,7 +142,7 @@ static int TestSigSuspend()
if (retValue != 0) {
exit(retValue);
}
printf("pending 2= %x\n", pending.__bits[0]);
printf("pending 2= %lx\n", pending.__bits[0]);
retValue = raise(SIGALRM);
if (retValue != 0) {
......@@ -152,7 +152,7 @@ static int TestSigSuspend()
if (retValue != 0) {
exit(retValue);
}
printf("pending 3= %x\n", pending.__bits[0]);
printf("pending 3= %lx\n", pending.__bits[0]);
exit(0);
}
......@@ -192,8 +192,8 @@ static int TestSigSuspend()
if (retValue != 0) {
exit(retValue);
}
printf("new 1 = %x\n", new1.__bits[0]);
printf("old 1 = %x\n", old1.__bits[0]);
printf("new 1 = %lx\n", new1.__bits[0]);
printf("old 1 = %lx\n", old1.__bits[0]);
retValue = kill(getpid(), SIGINT);
if (retValue != 0) {
......@@ -203,7 +203,7 @@ static int TestSigSuspend()
if (retValue != 0) {
exit(retValue);
}
printf("raise 1 = %x\n", new1.__bits[0]);
printf("raise 1 = %lx\n", new1.__bits[0]);
exit(0);
}
......
......@@ -82,10 +82,10 @@ EXIT:
4. use the mq_close to close the mqueue;
5. use the mq_unlink to delete the mqueue.
*-@texpect
1. Return successed
2. Return successed
3. Return successed
4. Return successed
1. Return succeeded
2. Return succeeded
3. Return succeeded
4. Return succeeded
5. Successful operation
*-@tprior 1
*-@tauto TRUE
......
......@@ -60,7 +60,7 @@ static UINT32 Testcase(VOID)
/*
* Check to make sure that 'value_ptr' that was passed to
* pthread_join() and the pthread_exit() return code that
* was used in the thread funciton are the same.
* was used in the thread function are the same.
*/
ICUNIT_ASSERT_EQUAL(valuePtr, PTHREAD_EXIT_VALUE, errno);
......
......@@ -39,7 +39,7 @@ static UINT32 TestCase(VOID)
x = nrand48(seed);
if ((x < 0) || (x > MAX_NRAND48)) {
printf("[IN %s][line %d] x = %d\n", __FUNCTION__, __LINE__, x);
printf("[IN %s][line %d] x = %ld\n", __FUNCTION__, __LINE__, x);
goto EXIT;
}
......
......@@ -38,7 +38,7 @@ static UINT32 TestCase(VOID)
x = random();
if (x > labs(MAX_RANDOM - 1)) {
printf("[IN %s][line %d] x = %d\n", __FUNCTION__, __LINE__, x);
printf("[IN %s][line %d] x = %ld\n", __FUNCTION__, __LINE__, x);
goto EXIT;
}
......
......@@ -39,7 +39,7 @@ static UINT32 TestCase(VOID)
x = jrand48(seed);
if ((x < -JRAND48_NUM) || (x > JRAND48_NUM)) {
printf("[IN %s][line %d] x = %d\n", __FUNCTION__, __LINE__, x);
printf("[IN %s][line %d] x = %ld\n", __FUNCTION__, __LINE__, x);
goto EXIT;
}
......
......@@ -40,7 +40,7 @@ static UINT32 TestCase(VOID)
lcong48(seed);
x = mrand48();
if ((x < -MRAND48_NUM) || (x > MRAND48_NUM)) {
printf("[IN %s][line %d] x = %d\n", __FUNCTION__, __LINE__, x);
printf("[IN %s][line %d] x = %ld\n", __FUNCTION__, __LINE__, x);
goto EXIT;
}
......
git add -A
git commit -m ' 同步官方源码
git commit -m ' 纠正一些错误单词拼写
鸿蒙研究站 | http://weharmonyos.com (国内)
| https://weharmony.github.io (国外)
论坛 | http://bbs.weharmonyos.com
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册