提交 a3b1f06b 编写于 作者: X xionglei6

init: fix codedex

Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 e05bd4f5
...@@ -133,13 +133,13 @@ static void HandleUeventRequired(const struct Uevent *uevent, char **devices, in ...@@ -133,13 +133,13 @@ static void HandleUeventRequired(const struct Uevent *uevent, char **devices, in
if (uevent->partitionName == NULL) { if (uevent->partitionName == NULL) {
INIT_LOGI("Match with %s for %s", devices[i], uevent->syspath); INIT_LOGI("Match with %s for %s", devices[i], uevent->syspath);
deviceName = strstr(devices[i], "/dev/block"); deviceName = strstr(devices[i], "/dev/block");
if (deviceName != NULL) { INIT_INFO_CHECK(deviceName != NULL, continue,
deviceName += sizeof("/dev/block") - 1; "device %s not match \"/dev/block\".", devices[i]);
if (strstr(uevent->syspath, deviceName) != NULL) { deviceName += sizeof("/dev/block") - 1;
HandleBlockDeviceEvent(uevent); INIT_INFO_CHECK(strstr(uevent->syspath, deviceName) != NULL, continue,
break; "uevent->syspath %s not match deviceName %s", uevent->syspath, deviceName);
} HandleBlockDeviceEvent(uevent);
} break;
} else if (strstr(devices[i], uevent->partitionName) != NULL) { } else if (strstr(devices[i], uevent->partitionName) != NULL) {
INIT_LOGI("Handle block device partitionName %s", uevent->partitionName); INIT_LOGI("Handle block device partitionName %s", uevent->partitionName);
HandleBlockDeviceEvent(uevent); HandleBlockDeviceEvent(uevent);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册