mirror of
https://gitee.com/openharmony/startup_init
synced 2025-03-06 19:47:27 +00:00
init: fix code style
Signed-off-by: xionglei6 <xionglei6@huawei.com>
This commit is contained in:
parent
47ea694218
commit
5f00c53227
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -164,5 +164,4 @@ HWTEST_F(InnerkitsUnitTest, TestFsManagerLog, TestSize.Level1)
|
||||
FSMGR_LOGE("Fsmanager log to file.");
|
||||
FsManagerLogDeInit();
|
||||
}
|
||||
|
||||
} // namespace init_ut
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user