提交 5f00c532 编写于 作者: X xionglei6

init: fix code style

Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 47ea6942
...@@ -45,7 +45,7 @@ static InitLogLevel ConvertToInitLog(FsMgrLogLevel level) ...@@ -45,7 +45,7 @@ static InitLogLevel ConvertToInitLog(FsMgrLogLevel level)
static const char *ConvertToKernelLog(FsMgrLogLevel level) static const char *ConvertToKernelLog(FsMgrLogLevel level)
{ {
switch (level) { switch (level) {
case FSMGR_VERBOSE: // fall through case FSMGR_VERBOSE: // fall through
case FSMGR_DEBUG: case FSMGR_DEBUG:
return "<7>"; return "<7>";
...@@ -94,7 +94,7 @@ static void WriteLogToFile(FILE *fp, const char *fileName, int line, const char ...@@ -94,7 +94,7 @@ static void WriteLogToFile(FILE *fp, const char *fileName, int line, const char
fileName == NULL ? "" : fileName, line, "fs_manager", fmt) == -1) { fileName == NULL ? "" : fileName, line, "fs_manager", fmt) == -1) {
return; return;
} }
fprintf(fp, "%s", fullLogMsg); (void)fprintf(fp, "%s", fullLogMsg);
return; return;
} }
......
...@@ -93,8 +93,8 @@ static void OnReceiveRequest(uv_stream_t *handle, ssize_t nread, const uv_buf_t ...@@ -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); PARAM_LOGD("OnReceiveRequest %d nread %d", buf->len, nread);
LibuvStreamTask *client = PARAM_ENTRY(handle, LibuvStreamTask, stream); LibuvStreamTask *client = PARAM_ENTRY(handle, LibuvStreamTask, stream);
if (client->recvMessage == NULL) { if (client->recvMessage == NULL) {
free(buf->base); free(buf->base);
return; return;
} }
ssize_t curr = 0; ssize_t curr = 0;
while (curr < nread) { while (curr < nread) {
...@@ -346,4 +346,4 @@ int ParamServiceStop(void) ...@@ -346,4 +346,4 @@ int ParamServiceStop(void)
uv_fs_unlink(uv_default_loop(), &req, PIPE_NAME, NULL); uv_fs_unlink(uv_default_loop(), &req, PIPE_NAME, NULL);
uv_stop(uv_default_loop()); uv_stop(uv_default_loop());
return 0; return 0;
} }
\ No newline at end of file
...@@ -164,5 +164,4 @@ HWTEST_F(InnerkitsUnitTest, TestFsManagerLog, TestSize.Level1) ...@@ -164,5 +164,4 @@ HWTEST_F(InnerkitsUnitTest, TestFsManagerLog, TestSize.Level1)
FSMGR_LOGE("Fsmanager log to file."); FSMGR_LOGE("Fsmanager log to file.");
FsManagerLogDeInit(); FsManagerLogDeInit();
} }
} // namespace init_ut } // namespace init_ut
...@@ -66,7 +66,6 @@ extern char bootDevice[CMDLINE_VALUE_LEN_MAX]; ...@@ -66,7 +66,6 @@ extern char bootDevice[CMDLINE_VALUE_LEN_MAX];
const char *ActionString(ACTION action); const char *ActionString(ACTION action);
void ParseUeventMessage(const char *buffer, ssize_t length, struct Uevent *uevent); void ParseUeventMessage(const char *buffer, ssize_t length, struct Uevent *uevent);
//void RetriggerUevent(int sockFd);
void RetriggerUevent(int sockFd, char **devices, int num); void RetriggerUevent(int sockFd, char **devices, int num);
void ProcessUevent(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 ...@@ -188,8 +188,6 @@ static void BuildBootDeviceSymbolLink(char **links, int linkNum, const char *par
} }
} }
static void BuildDeviceSymbolLinks(char **links, int linkNum, const char *parent, static void BuildDeviceSymbolLinks(char **links, int linkNum, const char *parent,
const char *partitionName, const char *deviceName) const char *partitionName, const char *deviceName)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册