Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Init Lite
提交
c0e8235c
S
Startup Init Lite
项目概览
OpenHarmony
/
Startup Init Lite
1 年多 前同步成功
通知
3
Star
37
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Startup Init Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
c0e8235c
编写于
2月 18, 2023
作者:
O
openharmony_ci
提交者:
Gitee
2月 18, 2023
浏览文件
操作
浏览文件
下载
差异文件
!1777 FIX:修改编码规范
Merge pull request !1777 from cheng_jinsong/0217_p
上级
e7b1450a
d84fe250
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
12 addition
and
13 deletion
+12
-13
interfaces/innerkits/init_module_engine/init_modulemgr.c
interfaces/innerkits/init_module_engine/init_modulemgr.c
+1
-1
services/init/init_group_manager.c
services/init/init_group_manager.c
+2
-2
services/loopevent/task/le_task.c
services/loopevent/task/le_task.c
+2
-2
services/param/trigger/trigger_manager.c
services/param/trigger/trigger_manager.c
+1
-1
services/param/watcher/agent/watcher_manager_kits.cpp
services/param/watcher/agent/watcher_manager_kits.cpp
+2
-3
test/moduletest/hookmgr_moduletest.cpp
test/moduletest/hookmgr_moduletest.cpp
+1
-1
test/unittest/innerkits/hookmgr_unittest.cpp
test/unittest/innerkits/hookmgr_unittest.cpp
+1
-1
test/unittest/loopevent/loopserver_unittest.cpp
test/unittest/loopevent/loopserver_unittest.cpp
+2
-2
未找到文件。
interfaces/innerkits/init_module_engine/init_modulemgr.c
浏览文件 @
c0e8235c
...
...
@@ -87,7 +87,7 @@ static int moduleMgrCommandsInit(const HOOK_INFO *info, void *cookie)
static
int
loadAutorunModules
(
const
HOOK_INFO
*
info
,
void
*
cookie
)
{
autorunModuleMgr
=
ModuleMgrScan
(
"init/autorun"
);
INIT_LOGV
(
"Load autorun modules return
%p"
,
autorunModuleMgr
);
INIT_LOGV
(
"Load autorun modules return
autorunModuleMgr"
);
return
0
;
}
...
...
services/init/init_group_manager.c
浏览文件 @
c0e8235c
...
...
@@ -229,7 +229,7 @@ InitGroupNode *AddGroupNode(int type, const char *name)
if
(
groupNode
!=
NULL
)
{
return
groupNode
;
}
INIT_LOGV
(
"AddGroupNode type %d
%p name %s"
,
type
,
g_initWorkspace
.
hashMap
[
type
]
,
name
);
INIT_LOGV
(
"AddGroupNode type %d
name %s"
,
type
,
name
);
uint32_t
nameLen
=
(
uint32_t
)
strlen
(
name
);
groupNode
=
(
InitGroupNode
*
)
calloc
(
1
,
sizeof
(
InitGroupNode
)
+
nameLen
+
1
);
INIT_ERROR_CHECK
(
groupNode
!=
NULL
,
return
NULL
,
"Failed to alloc for group %s"
,
name
);
...
...
@@ -272,7 +272,7 @@ void DelGroupNode(int type, const char *name)
if
(
type
>=
NODE_TYPE_GROUPS
)
{
return
;
}
INIT_LOGV
(
"DelGroupNode type %d
%p name %s"
,
type
,
g_initWorkspace
.
hashMap
[
type
]
,
name
);
INIT_LOGV
(
"DelGroupNode type %d
name %s"
,
type
,
name
);
OH_HashMapRemove
(
g_initWorkspace
.
hashMap
[
type
],
name
);
InitGroupNode
*
groupNode
=
g_initWorkspace
.
groupNodes
[
type
];
InitGroupNode
*
preNode
=
groupNode
;
...
...
services/loopevent/task/le_task.c
浏览文件 @
c0e8235c
...
...
@@ -55,7 +55,7 @@ BaseTask *CreateTask(const LoopHandle loopHandle, int fd, const LE_BaseInfo *inf
void
CloseTask
(
const
LoopHandle
loopHandle
,
BaseTask
*
task
)
{
LE_LOGV
(
"CloseTask
%p"
,
task
);
LE_LOGV
(
"CloseTask
"
);
LE_CHECK
(
loopHandle
!=
NULL
&&
task
!=
NULL
,
return
,
"Invalid parameters"
);
if
(
CheckTaskFlags
(
task
,
TASK_STREAM
|
TASK_CONNECT
)
||
CheckTaskFlags
(
task
,
TASK_EVENT
|
TASK_ASYNC_EVENT
))
{
...
...
@@ -189,7 +189,7 @@ LE_STATUS LE_Send(const LoopHandle loopHandle,
void
LE_CloseTask
(
const
LoopHandle
loopHandle
,
const
TaskHandle
taskHandle
)
{
LE_CHECK
(
loopHandle
!=
NULL
&&
taskHandle
!=
NULL
,
return
,
"Invalid parameters"
);
LE_LOGV
(
"LE_CloseTask %d
%p"
,
GetSocketFd
(
taskHandle
),
taskHandle
);
LE_LOGV
(
"LE_CloseTask %d
"
,
GetSocketFd
(
taskHandle
)
);
BaseTask
*
task
=
(
BaseTask
*
)
taskHandle
;
if
(
task
->
innerClose
!=
NULL
)
{
task
->
innerClose
(
loopHandle
,
taskHandle
);
...
...
services/param/trigger/trigger_manager.c
浏览文件 @
c0e8235c
...
...
@@ -711,7 +711,7 @@ void ClearWatchTrigger(ParamWatcher *watcher, int type)
PARAM_LOGE
(
"ClearWatchTrigger %s error type %d"
,
GetTriggerName
(
trigger
),
type
);
return
;
}
PARAM_LOGV
(
"ClearWatchTrigger %
p %s"
,
trigger
,
GetTriggerName
(
trigger
));
PARAM_LOGV
(
"ClearWatchTrigger %
s"
,
GetTriggerName
(
trigger
));
ListNode
*
next
=
node
->
next
;
FreeTrigger
(
GetTriggerWorkSpace
(),
trigger
);
node
=
next
;
...
...
services/param/watcher/agent/watcher_manager_kits.cpp
浏览文件 @
c0e8235c
...
...
@@ -233,8 +233,7 @@ void WatcherManagerKits::ParamWatcher::RemoveParameterListener(uint32_t idx)
int
WatcherManagerKits
::
ParamWatcher
::
AddParameterListener
(
ParameterChangePtr
callback
,
void
*
context
)
{
WATCHER_CHECK
(
callback
!=
nullptr
,
return
-
1
,
"Invalid callback "
);
WATCHER_LOGV
(
"AddParameterListener %s listenerId_ %d callback %p context %p"
,
keyPrefix_
.
c_str
(),
listenerId_
,
callback
,
context
);
WATCHER_LOGV
(
"AddParameterListener %s listenerId_ %d"
,
keyPrefix_
.
c_str
(),
listenerId_
);
for
(
auto
it
=
parameterChangeListeners
.
begin
();
it
!=
parameterChangeListeners
.
end
();
it
++
)
{
if
(
it
->
second
==
nullptr
)
{
continue
;
...
...
@@ -261,7 +260,7 @@ int WatcherManagerKits::ParamWatcher::DelParameterListener(ParameterChangePtr ca
ParameterChangeListener
*
listener
=
GetParameterListener
(
&
index
);
while
(
listener
!=
nullptr
)
{
if
(
listener
->
IsEqual
(
callback
,
context
))
{
WATCHER_LOGV
(
"DelParameterListener listenerId_ %d
callback %p context %p"
,
index
,
callback
,
context
);
WATCHER_LOGV
(
"DelParameterListener listenerId_ %d
"
,
index
);
RemoveParameterListener
(
index
);
break
;
}
...
...
test/moduletest/hookmgr_moduletest.cpp
浏览文件 @
c0e8235c
...
...
@@ -63,7 +63,7 @@ static int OhosTestHookMultiThreadAnother(const HOOK_INFO *hookInfo, void *execu
static
void
OhosHookPrint
(
const
HOOK_INFO
*
hookInfo
,
void
*
traversalCookie
)
{
printf
(
"
\t
stage[%02d] prio[%02d]
hook[%p].
\n
"
,
hookInfo
->
stage
,
hookInfo
->
prio
,
hookInfo
->
hook
);
printf
(
"
\t
stage[%02d] prio[%02d]
.
\n
"
,
hookInfo
->
stage
,
hookInfo
->
prio
);
}
static
void
DumpAllHooks
(
HOOK_MGR
*
hookMgr
)
...
...
test/unittest/innerkits/hookmgr_unittest.cpp
浏览文件 @
c0e8235c
...
...
@@ -67,7 +67,7 @@ static int OhosTestHookRetOKEx2(const HOOK_INFO *hookInfo, void *executionContex
static
void
OhosHookPrint
(
const
HOOK_INFO
*
hookInfo
,
void
*
traversalCookie
)
{
printf
(
"
\t
stage[%02d] prio[%02d]
hook[%p].
\n
"
,
hookInfo
->
stage
,
hookInfo
->
prio
,
hookInfo
->
hook
);
printf
(
"
\t
stage[%02d] prio[%02d]
.
\n
"
,
hookInfo
->
stage
,
hookInfo
->
prio
);
}
static
void
dumpAllHooks
(
HOOK_MGR
*
hookMgr
)
...
...
test/unittest/loopevent/loopserver_unittest.cpp
浏览文件 @
c0e8235c
...
...
@@ -253,11 +253,11 @@ public:
ret
=
LE_CreateStreamServer
(
g_loopServer_
,
&
pipeServer
,
&
info
);
EXPECT_EQ
(
ret
,
0
);
printf
(
"Run server pipeServer_
%p
\n
"
,
pipeServer
);
printf
(
"Run server pipeServer_
\n
"
);
// run loop for server
LE_RunLoop
(
g_loopServer_
);
printf
(
"Run server pipeServer_
%p
\n
"
,
pipeServer
);
printf
(
"Run server pipeServer_
\n
"
);
LE_CloseStreamTask
(
g_loopServer_
,
pipeServer
);
pipeServer
=
nullptr
;
LE_CloseStreamTask
(
g_loopServer_
,
tcpServer
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录