提交 a950ceb3 编写于 作者: X xlei1030

修改log级别

Signed-off-by: Nxlei1030 <xionglei6@huawei.com>
上级 cc1c3377
......@@ -302,7 +302,7 @@ static void DoChown(const struct CmdArgs *ctx)
const int pathPos = 2;
int ret = SetOwner(ctx->argv[pathPos], ctx->argv[0], ctx->argv[1]);
if (ret != 0) {
INIT_FATAL("Failed to change owner for %s, err %d.", ctx->argv[pathPos], errno);
INIT_LOGE("Failed to change owner for %s, err %d.", ctx->argv[pathPos], errno);
}
return;
}
......@@ -358,7 +358,7 @@ static void DoChmod(const struct CmdArgs *ctx)
}
if (chmod(ctx->argv[1], mode) != 0) {
INIT_FATAL("Failed to change mode \" %s \" mode to %04o, err = %d", ctx->argv[1], mode, errno);
INIT_LOGE("Failed to change mode \" %s \" mode to %04o, err = %d", ctx->argv[1], mode, errno);
}
}
......
......@@ -38,7 +38,7 @@ public:
HWTEST_F(CmdsUnitTest, TestCmdExecByName, TestSize.Level1)
{
SetInitLogLevel(INIT_INFO);
SetInitLogLevel(INIT_FATAL);
DoCmdByName("load_param ", " /system/etc/param onlyadd");
DoCmdByName("symlink ", "/proc/self/fd/0 /dev/stdin");
DoCmdByName("insmod ",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册