提交 eebdf5f5 编写于 作者: Z zhang-jia-nan

Fix a typo

Signed-off-by: Nzhang-jia-nan <zhangjianan0119@163.com>
上级 3370247e
......@@ -63,7 +63,7 @@
<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
<!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
<filteritem type="filname" name="*.jpg|*.png|*.gif|*.pdf" desc="already checked"/>
<filteritem type="filename" name="*.jpg|*.png|*.gif|*.pdf" desc="already checked"/>
<filteritem type="filepath" name="services/test/unittest/test_data/proc/*" desc="启动功能UT测试的资源文件"/>
</filefilter>
......
......@@ -50,7 +50,7 @@ static const char *actions[] = {
[ACTION_OFFLINE] = "offline",
[ACTION_BIND] = "bind",
[ACTION_UNBIND] = "unbind",
[ACTION_UNKNOWN] = "unknow",
[ACTION_UNKNOWN] = "unknown",
};
static SUBSYSTEMTYPE GetSubsystemType(const char *subsystem)
......@@ -169,7 +169,7 @@ static void HandleRequiredDynamicDeviceNodes(const struct Uevent *uevent)
static void HandleUeventRequired(const struct Uevent *uevent, char **devices, int num)
{
const char *deviceName;
INIT_ERROR_CHECK(devices != NULL && num > 0, return, "Fault paramters");
INIT_ERROR_CHECK(devices != NULL && num > 0, return, "Fault parameters");
if (uevent->action == ACTION_ADD) {
ChangeSysAttributePermissions(uevent->syspath);
}
......@@ -332,7 +332,7 @@ static void Trigger(const char *path, int sockFd, char **devices, int num)
}
char ueventBuffer[PATH_MAX];
if (snprintf_s(ueventBuffer, PATH_MAX, PATH_MAX - 1, "%s/%s", path, "uevent") == -1) {
INIT_LOGW("Cannnot build uevent path under %s", path);
INIT_LOGW("Cannot build uevent path under %s", path);
continue;
}
DoTrigger(ueventBuffer, sockFd, devices, num);
......
......@@ -307,7 +307,7 @@ static char **GetBlockDeviceSymbolLinks(const struct Uevent *uevent)
return NULL;
}
// Reverse walk through sysPath, and check subystem file under each directory.
// Reverse walk through sysPath, and check subsystem file under each directory.
char *parent = dirname(sysPath);
while (parent != NULL && !STRINGEQUAL(parent, "/") && !STRINGEQUAL(parent, ".")) {
char subsystem[SYSPATH_SIZE];
......
......@@ -39,7 +39,7 @@ int UeventdSocketInit(void)
int on = 1;
if (memset_s(&addr, sizeof(addr), 0, sizeof(addr)) != EOK) {
INIT_LOGE("Faild to clear socket address");
INIT_LOGE("Failed to clear socket address");
return -1;
}
addr.nl_family = AF_NETLINK;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册