提交 6ff67227 编写于 作者: X xlei1030

修改bug

Signed-off-by: Nxlei1030 <xionglei6@huawei.com>
上级 567b32c8
......@@ -260,9 +260,9 @@ static int BindCpuCore(Service *service)
CPU_SET(index, &setMask);
}
if (sched_setaffinity(pid, sizeof(setMask), &setMask) != 0) {
INIT_LOGI("%s set affinity between process(pid=%d) with CPU's core %d failed", service->name, pid);
INIT_LOGI("%s set affinity between process(pid=%d) with CPU's core failed", service->name, pid);
} else {
INIT_LOGE("%s et affinity between process(pid=%d) with CPU's core %d successfully", service->name, pid);
INIT_LOGE("%s set affinity between process(pid=%d) with CPU's core successfully", service->name, pid);
}
return SERVICE_SUCCESS;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册