提交 7f29d674 编写于 作者: M Mupceet

fix bug for module

Signed-off-by: NMupceet <laiguizhong@huawei.com>
上级 ffc886a6
......@@ -68,7 +68,7 @@ static int ModuleMgrCmdInstall(int id, const char *name, int argc, const char **
static int ModuleMgrCmdUninstall(int id, const char *name, int argc, const char **argv)
{
INIT_ERROR_CHECK(argv != NULL && argc >= 1, return -1, "Invalid install parameter");
ModuleMgrUninstall(NULL, argv[0]);
ModuleMgrUninstall(defaultModuleMgr, argv[0]);
return 0;
}
......
......@@ -109,7 +109,7 @@ static void *moduleInstall(MODULE_ITEM *module, int argc, const char *argv[])
return NULL;
}
} else {
if (snprintf_s(path, sizeof(path), sizeof(path) - 1, "/system/" MODULE_LIB_NAME "/%s/%s" MODULE_SUFFIX_D,
if (snprintf_s(path, sizeof(path), sizeof(path) - 1, "/system/" MODULE_LIB_NAME "/%s/lib%s" MODULE_SUFFIX_D,
module->moduleMgr->name, module->name) < 0) {
return NULL;
}
......
......@@ -26,7 +26,7 @@ static int bootchartEarlyHook(const HOOK_INFO *info, void *cookie)
return 0;
}
InitModuleMgrInstall("libbootchart");
InitModuleMgrInstall("bootchart");
PLUGIN_LOGI("bootchart enabled.");
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册