提交 52d0c5ed 编写于 作者: X xlei1030

修改编码规范

Signed-off-by: Nxlei1030 <xionglei6@huawei.com>
上级 ccdc264f
...@@ -648,7 +648,7 @@ static int SnDealFun(const char* name, const char* value, int res) ...@@ -648,7 +648,7 @@ static int SnDealFun(const char* name, const char* value, int res)
data[index] = '\0'; data[index] = '\0';
PARAM_LOGV("**** name %s, value %s", name, data); PARAM_LOGV("**** name %s, value %s", name, data);
ret = WriteParam(&g_paramWorkSpace.paramSpace, name, data, NULL, 0); ret = WriteParam(&g_paramWorkSpace.paramSpace, name, data, NULL, 0);
PARAM_CHECK(ret == 0, free(data); PARAM_CHECK(ret == 0, free(data);
return ret, "Failed to write param %s %s", name, data); return ret, "Failed to write param %s %s", name, data);
free(data); free(data);
...@@ -658,8 +658,7 @@ static int SnDealFun(const char* name, const char* value, int res) ...@@ -658,8 +658,7 @@ static int SnDealFun(const char* name, const char* value, int res)
static int LoadParamFromCmdLine(void) static int LoadParamFromCmdLine(void)
{ {
int ret; int ret;
static const cmdLineInfo cmdLines[] = { static const cmdLineInfo cmdLines[] = { {OHOS_BOOT"hardware", CommonDealFun},
{ OHOS_BOOT"hardware", CommonDealFun },
{ OHOS_BOOT"bootgroup", CommonDealFun }, { OHOS_BOOT"bootgroup", CommonDealFun },
{ OHOS_BOOT"reboot_reason", CommonDealFun }, { OHOS_BOOT"reboot_reason", CommonDealFun },
{ OHOS_BOOT"sn", SnDealFun }, { OHOS_BOOT"sn", SnDealFun },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册