From eadd9b41c9bc4c8d14e63ba88108630391e9a892 Mon Sep 17 00:00:00 2001 From: zaki Date: Wed, 2 Nov 2022 16:12:54 +0800 Subject: [PATCH] update init log Signed-off-by: zaki Change-Id: Ia5d7ac89102a76c6fd540011495a41bc13f4470f --- interfaces/innerkits/syspara/param_comm.c | 1 - services/log/init_log.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/interfaces/innerkits/syspara/param_comm.c b/interfaces/innerkits/syspara/param_comm.c index ffca3c38..f89d7b09 100644 --- a/interfaces/innerkits/syspara/param_comm.c +++ b/interfaces/innerkits/syspara/param_comm.c @@ -57,7 +57,6 @@ INIT_LOCAL_API int GetSystemError(int err) default: return SYSPARAM_SYSTEM_ERROR; } - return 0; } INIT_LOCAL_API int IsValidParamValue(const char *value, uint32_t len) diff --git a/services/log/init_log.c b/services/log/init_log.c index 59004dec..8942e6bd 100644 --- a/services/log/init_log.c +++ b/services/log/init_log.c @@ -164,6 +164,6 @@ INIT_LOCAL_API void EnableInitLogFromCmdline(void) errno = 0; 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); - SetInitLogLevel(logLevel); + SetInitLogLevel((InitLogLevel)logLevel); return; } -- GitLab