提交 610f18ec 编写于 作者: Z zaki

fixed eadd9b41 from https://gitee.com/zhou-jun-141/startup_init_lite/pulls/1464

update init log
Signed-off-by: Nzaki <zhoujun141@huawei.com>
Change-Id: Ia5d7ac89102a76c6fd540011495a41bc13f4470f
上级 fa0bad39
...@@ -57,7 +57,6 @@ INIT_LOCAL_API int GetSystemError(int err) ...@@ -57,7 +57,6 @@ INIT_LOCAL_API int GetSystemError(int err)
default: default:
return SYSPARAM_SYSTEM_ERROR; return SYSPARAM_SYSTEM_ERROR;
} }
return 0;
} }
INIT_LOCAL_API int IsValidParamValue(const char *value, uint32_t len) INIT_LOCAL_API int IsValidParamValue(const char *value, uint32_t len)
......
...@@ -164,6 +164,6 @@ INIT_LOCAL_API void EnableInitLogFromCmdline(void) ...@@ -164,6 +164,6 @@ INIT_LOCAL_API void EnableInitLogFromCmdline(void)
errno = 0; errno = 0;
unsigned int logLevel = (unsigned int)strtoul(level, 0, 10); // 10 is decimal unsigned int logLevel = (unsigned int)strtoul(level, 0, 10); // 10 is decimal
INIT_INFO_CHECK(errno == 0, return, "Failed strtoul %s, err=%d", level, errno); INIT_INFO_CHECK(errno == 0, return, "Failed strtoul %s, err=%d", level, errno);
SetInitLogLevel(logLevel); SetInitLogLevel((InitLogLevel)logLevel);
return; return;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册