未验证 提交 a15da3dd 编写于 作者: O openharmony_ci 提交者: Gitee

!879 fix bug for module install

Merge pull request !879 from Mupceet/module
...@@ -68,7 +68,7 @@ static int ModuleMgrCmdInstall(int id, const char *name, int argc, const char ** ...@@ -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) 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"); INIT_ERROR_CHECK(argv != NULL && argc >= 1, return -1, "Invalid install parameter");
ModuleMgrUninstall(NULL, argv[0]); ModuleMgrUninstall(defaultModuleMgr, argv[0]);
return 0; return 0;
} }
......
...@@ -109,7 +109,7 @@ static void *moduleInstall(MODULE_ITEM *module, int argc, const char *argv[]) ...@@ -109,7 +109,7 @@ static void *moduleInstall(MODULE_ITEM *module, int argc, const char *argv[])
return NULL; return NULL;
} }
} else { } 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) { module->moduleMgr->name, module->name) < 0) {
return NULL; return NULL;
} }
......
...@@ -26,7 +26,7 @@ static int bootchartEarlyHook(const HOOK_INFO *info, void *cookie) ...@@ -26,7 +26,7 @@ static int bootchartEarlyHook(const HOOK_INFO *info, void *cookie)
return 0; return 0;
} }
InitModuleMgrInstall("libbootchart"); InitModuleMgrInstall("bootchart");
PLUGIN_LOGI("bootchart enabled."); PLUGIN_LOGI("bootchart enabled.");
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册