Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Init Lite
提交
5f00c532
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看板
提交
5f00c532
编写于
11月 11, 2021
作者:
X
xionglei6
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
init: fix code style
Signed-off-by:
N
xionglei6
<
xionglei6@huawei.com
>
上级
47ea6942
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
5 addition
and
9 deletion
+5
-9
interfaces/innerkits/fs_manager/fs_manager_log.c
interfaces/innerkits/fs_manager/fs_manager_log.c
+2
-2
services/param/adapter/param_libuvadp.c
services/param/adapter/param_libuvadp.c
+3
-3
test/unittest/innerkits/innerkits_unittest.cpp
test/unittest/innerkits/innerkits_unittest.cpp
+0
-1
ueventd/include/ueventd.h
ueventd/include/ueventd.h
+0
-1
ueventd/ueventd_device_handler.c
ueventd/ueventd_device_handler.c
+0
-2
未找到文件。
interfaces/innerkits/fs_manager/fs_manager_log.c
浏览文件 @
5f00c532
...
...
@@ -45,7 +45,7 @@ static InitLogLevel ConvertToInitLog(FsMgrLogLevel level)
static
const
char
*
ConvertToKernelLog
(
FsMgrLogLevel
level
)
{
switch
(
level
)
{
switch
(
level
)
{
case
FSMGR_VERBOSE
:
// fall through
case
FSMGR_DEBUG
:
return
"<7>"
;
...
...
@@ -94,7 +94,7 @@ static void WriteLogToFile(FILE *fp, const char *fileName, int line, const char
fileName
==
NULL
?
""
:
fileName
,
line
,
"fs_manager"
,
fmt
)
==
-
1
)
{
return
;
}
fprintf
(
fp
,
"%s"
,
fullLogMsg
);
(
void
)
fprintf
(
fp
,
"%s"
,
fullLogMsg
);
return
;
}
...
...
services/param/adapter/param_libuvadp.c
浏览文件 @
5f00c532
...
...
@@ -93,8 +93,8 @@ static void OnReceiveRequest(uv_stream_t *handle, ssize_t nread, const uv_buf_t
PARAM_LOGD
(
"OnReceiveRequest %d nread %d"
,
buf
->
len
,
nread
);
LibuvStreamTask
*
client
=
PARAM_ENTRY
(
handle
,
LibuvStreamTask
,
stream
);
if
(
client
->
recvMessage
==
NULL
)
{
free
(
buf
->
base
);
return
;
free
(
buf
->
base
);
return
;
}
ssize_t
curr
=
0
;
while
(
curr
<
nread
)
{
...
...
@@ -346,4 +346,4 @@ int ParamServiceStop(void)
uv_fs_unlink
(
uv_default_loop
(),
&
req
,
PIPE_NAME
,
NULL
);
uv_stop
(
uv_default_loop
());
return
0
;
}
\ No newline at end of file
}
test/unittest/innerkits/innerkits_unittest.cpp
浏览文件 @
5f00c532
...
...
@@ -164,5 +164,4 @@ HWTEST_F(InnerkitsUnitTest, TestFsManagerLog, TestSize.Level1)
FSMGR_LOGE
(
"Fsmanager log to file."
);
FsManagerLogDeInit
();
}
}
// namespace init_ut
ueventd/include/ueventd.h
浏览文件 @
5f00c532
...
...
@@ -66,7 +66,6 @@ extern char bootDevice[CMDLINE_VALUE_LEN_MAX];
const
char
*
ActionString
(
ACTION
action
);
void
ParseUeventMessage
(
const
char
*
buffer
,
ssize_t
length
,
struct
Uevent
*
uevent
);
//void RetriggerUevent(int sockFd);
void
RetriggerUevent
(
int
sockFd
,
char
**
devices
,
int
num
);
void
ProcessUevent
(
int
sockFd
,
char
**
devices
,
int
num
);
...
...
ueventd/ueventd_device_handler.c
浏览文件 @
5f00c532
...
...
@@ -188,8 +188,6 @@ static void BuildBootDeviceSymbolLink(char **links, int linkNum, const char *par
}
}
static
void
BuildDeviceSymbolLinks
(
char
**
links
,
int
linkNum
,
const
char
*
parent
,
const
char
*
partitionName
,
const
char
*
deviceName
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录