提交 03d3ddba 编写于 作者: C chengjinsong

fix codex

Signed-off-by: Nchengjinsong <chengjinsong2@huawei.com>
Change-Id: I065351447b6e9c64a5adba3035f4a4cb6879d3a6
上级 ccbe7177
......@@ -83,7 +83,7 @@ int BuildControlMessage(struct msghdr *msghdr, int *fds, int fdCount, bool send
STATIC int *GetFdsFromMsg(size_t *outFdCount, pid_t *requestPid, struct msghdr msghdr)
{
if ((msghdr.msg_flags) & MSG_TRUNC) {
if ((unsigned int)(msghdr.msg_flags) & (unsigned int)MSG_TRUNC) {
BEGET_LOGE("Message was truncated when receiving fds");
return NULL;
}
......
......@@ -249,7 +249,7 @@ HOOK_MGR *GetBootStageHookMgr()
return bootStageHookMgr;
}
INIT_TIMING_STAT g_bootJob = {0};
INIT_TIMING_STAT g_bootJob = {{0}, {0}};
static void RecordInitBootEvent(const char *initBootEvent)
{
......
......@@ -428,16 +428,16 @@ void WatcherManager::DumpAllGroup(int fd, ParamWatcherProcessor dumpHandle)
}
dprintf(fd, "Watch prefix : %s \n", group->GetKeyPrefix().c_str());
dprintf(fd, "Watch group id : %u \n", group->GetGroupId());
dprintf(fd, "Watch count : %zu \n", group->GetNodeCount());
dprintf(fd, "Watch count : %u \n", group->GetNodeCount());
group->TraversalNode(dumpHandle);
count += group->GetNodeCount();
dprintf(fd, "\n");
}
dprintf(fd, "Watch prefix count : %zu [%zu %zu %zu]\n", watcherGroups_->GetNodeCount(),
dprintf(fd, "Watch prefix count : %u [%zu %zu %zu]\n", watcherGroups_->GetNodeCount(),
sizeof(RemoteWatcher), sizeof(WatcherGroup), sizeof(WatcherNode));
dprintf(fd, "Watch agent count : %zu \n", remoteWatchers_->GetNodeCount());
dprintf(fd, "Watch count : %zu \n", count);
dprintf(fd, "Watch agent count : %u \n", remoteWatchers_->GetNodeCount());
dprintf(fd, "Watch count : %u \n", count);
}
int WatcherManager::Dump(int fd, const std::vector<std::u16string>& args)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册