chore: 修复社区反馈问题Percpu结构体注释错误

修复社区反馈问题Percpu结构体注释错误,排查下其他拼写错误。

close #I4GMLH

Signed-off-by: kenneth <zhushangyuan@huawei.com>
This commit is contained in:
kenneth
2021-11-03 10:22:07 +08:00
parent f63ce99399
commit 0f878febb7
53 changed files with 157 additions and 157 deletions

View File

@@ -39,7 +39,7 @@ static int CheckedMmap(int prot, int flags, int fd)
int ret;
if (pageSize < 0) {
printf("err: mmap size invaild\n");
printf("err: mmap size invalid\n");
return -1;
}
p = mmap(NULL, pageSize, prot, flags, fd, 0);
@@ -64,11 +64,11 @@ static int Testcase(void)
ICUNIT_ASSERT_NOT_EQUAL(shmfd, -1, shmfd);
if (pageSize <= 0) {
printf("err: malloc size invaild\n");
printf("err: malloc size invalid\n");
return -1;
}
if (pageSize <= 0) {
printf("err: malloc size invaild\n");
printf("err: malloc size invalid\n");
return -1;
}
buf = (char *)malloc(pageSize);

View File

@@ -47,7 +47,7 @@ static UINT32 TestCase(VOID)
status = WEXITSTATUS(status);
ICUNIT_ASSERT_EQUAL(status, 15, status); /* 15, set priority for test */
ret = nice(-40); /* -40, set invaild priority for test */
ret = nice(-40); /* -40, set invalid priority for test */
ICUNIT_ASSERT_EQUAL(ret, -1, ret);
ICUNIT_ASSERT_EQUAL(errno, EINVAL, errno);
}

View File

@@ -36,7 +36,7 @@ static void *Xmalloc(unsigned n)
{
void *p = NULL;
if (n <= 0) {
printf("err: malloc size invaild\n");
printf("err: malloc size invalid\n");
exit(EXIT_FAILURE);
}
p = malloc(n);