Change-Id: I85a5cd0c5aec1ceb12a35edbf9d50365d7862396
_ERR("Failed to get root path from [%s]", pkgId);
return -1;
} else {
_ERR("Failed to get root path from [%s]", pkgId);
return -1;
} else {
- _DBG("Complete make application to native image");
+ _INFO("Complete make application to native image");
fd(0),
__initialized(false)
{
fd(0),
__initialized(false)
{
- _DBG("Constructor called!!");
+ _INFO("Constructor called!!");
// plugin initialize should be called before start loader mainloop.
// In case of VD plugins, attaching secure zone is done in the plugin_initialize().
// plugin initialize should be called before start loader mainloop.
// In case of VD plugins, attaching secure zone is done in the plugin_initialize().
#undef CORELIB_RETURN_IF_NOSYM
#undef CORELIB_RETURN_IF_NOSYM
- _DBG("libcoreclr dlopen and dlsym success");
+ _INFO("libcoreclr dlopen and dlsym success");
if (!standalone)
pluginPreload();
if (!standalone)
pluginPreload();
+ _INFO("CoreRuntime initialize success");
+
pluginSetCoreclrInfo(__hostHandle, __domainId, createDelegate);
pluginSetCoreclrInfo(__hostHandle, __domainId, createDelegate);
- _DBG("Initialize core clr success");
+ _INFO("Initialize core clr success");
- _DBG("Dotnet runtime disposed");
+ _INFO("Dotnet runtime disposed");
}
int CoreRuntime::launch(const char* appId, const char* root, const char* path, int argc, char* argv[])
}
int CoreRuntime::launch(const char* appId, const char* root, const char* path, int argc, char* argv[])
+ _INFO("execute assembly : %s", path);
+
unsigned int ret = 0;
int st = executeAssembly(__hostHandle, __domainId, argc, (const char**)argv, path, &ret);
if (st < 0)
unsigned int ret = 0;
int st = executeAssembly(__hostHandle, __domainId, argc, (const char**)argv, path, &ret);
if (st < 0)
// Precreate window
elmInitCnt = elm_init(__argc, __argv);
// Precreate window
elmInitCnt = elm_init(__argc, __argv);
- _DBG("[candidate] elm init, returned: %d", elmInitCnt);
+ if (!elmInitCnt) {
+ _ERR("[candidate] elm_init() failed");
+ return;
+ }
elm_config_accel_preference_set("hw");
__win = elm_win_add(NULL, "package_name", ELM_WIN_BASIC);
if (__win == NULL) {
elm_config_accel_preference_set("hw");
__win = elm_win_add(NULL, "package_name", ELM_WIN_BASIC);
if (__win == NULL) {
- _DBG("[candidate] elm_win_add() failed");
+ _ERR("[candidate] elm_win_add() failed");
adapter.add_fd = fdAdd;
adapter.remove_fd = fdRemove;
adapter.add_fd = fdAdd;
adapter.remove_fd = fdRemove;
- _DBG("launchpad_loader_main is start");
+ _INFO("launchpad_loader_main is start");
int r = launchpad_loader_main(argc, argv, &(this->callbacks), &(this->adapter), this);
int r = launchpad_loader_main(argc, argv, &(this->callbacks), &(this->adapter), this);
- _DBG("launchpad_loader_main is finished with [%d]", r);
+ _INFO("launchpad_loader_main is finished with [%d]", r);
std::unique_ptr<CoreRuntime> runtime(new CoreRuntime(mode));
if (standalone) {
std::unique_ptr<CoreRuntime> runtime(new CoreRuntime(mode));
if (standalone) {
- _DBG("##### Run it standalone #########");
+ _INFO("##### Run it standalone #########");
char appId[1024] = {0,};
std::string appRoot;
if (AUL_R_OK == aul_app_get_appid_bypid(getpid(), appId, sizeof(appId))) {
char appId[1024] = {0,};
std::string appRoot;
if (AUL_R_OK == aul_app_get_appid_bypid(getpid(), appId, sizeof(appId))) {
snprintf(appId, 16, "%s", "dotnet-launcher");
appRoot = baseName(baseName(standalonePath));
}
snprintf(appId, 16, "%s", "dotnet-launcher");
appRoot = baseName(baseName(standalonePath));
}
- _DBG("AUL_APPID : %s", appId);
+ _INFO("AUL_APPID : %s", appId);
if (runtime->initialize(true) != 0) {
_ERR("Failed to initialize");
if (runtime->initialize(true) != 0) {
_ERR("Failed to initialize");
if (runtime->initialize(false) != 0)
_ERR("Failed to initialized");
else
if (runtime->initialize(false) != 0)
_ERR("Failed to initialized");
else
- _DBG("Success to initialized");
+ _INFO("Success to initialized");
};
Launchpad.onTerminate = [&runtime](const AppInfo& appInfo, int argc, char** argv) {
};
Launchpad.onTerminate = [&runtime](const AppInfo& appInfo, int argc, char** argv) {
- _DBG("launch request with app path : %s", appInfo.path.c_str());
- _DBG("appId : %s", appInfo.id.c_str());
- _DBG("pkg : %s", appInfo.pkg.c_str());
- _DBG("type : %s", appInfo.type.c_str());
+ _INFO("launch request with app path : %s", appInfo.path.c_str());
+ _INFO("appId : %s", appInfo.id.c_str());
+ _INFO("pkg : %s", appInfo.pkg.c_str());
// aul_get_app_root_path() can return NULL for error case.
if (appInfo.root.empty()) {
// aul_get_app_root_path() can return NULL for error case.
if (appInfo.root.empty()) {
};
int ret = Launchpad.loaderMain(argc, argv);
if (ret < 0) {
};
int ret = Launchpad.loaderMain(argc, argv);
if (ret < 0) {
- _DBG("fail to start loaderMain. candidate process is not created.");
+ _ERR("fail to start loaderMain. candidate process is not created.");
int initializeLogManager()
{
if (setvbuf(stdout, NULL, _IOLBF, 0) < 0) {
int initializeLogManager()
{
if (setvbuf(stdout, NULL, _IOLBF, 0) < 0) {
- _DBG("fail to make stdout line-buffered");
+ _ERR("fail to make stdout line-buffered");
return -1;
}
if (setvbuf(stderr, NULL, _IONBF, 0) < 0) {
return -1;
}
if (setvbuf(stderr, NULL, _IONBF, 0) < 0) {
- _DBG("make stderr unbuffered");
+ _ERR("make stderr unbuffered");
return -1;
}
/* create the pipe and redirect stdout and stderr */
if (pipe(__pfd) < 0) {
return -1;
}
/* create the pipe and redirect stdout and stderr */
if (pipe(__pfd) < 0) {
- _DBG("fail to create pipe for logging");
+ _ERR("fail to create pipe for logging");
int redirectFD()
{
if (__pfd[1] < 0) {
int redirectFD()
{
if (__pfd[1] < 0) {
- _DBG("fail to create pipe for logging");
+ _ERR("fail to create pipe for logging");
return -1;
}
// stdout
if (dup2(__pfd[1], 1) == -1) {
return -1;
}
// stdout
if (dup2(__pfd[1], 1) == -1) {
- _DBG("fail to duplicate fd to stdout");
+ _ERR("fail to duplicate fd to stdout");
return -1;
}
// stderr
if (dup2(__pfd[1], 2) == -1) {
return -1;
}
// stderr
if (dup2(__pfd[1], 2) == -1) {
- _DBG("fail to duplicate fd to stderr");
+ _ERR("fail to duplicate fd to stderr");
{
/* spawn the logging thread */
if (pthread_create(&loggingThread, 0, stdlog, 0) != 0) {
{
/* spawn the logging thread */
if (pthread_create(&loggingThread, 0, stdlog, 0) != 0) {
- _DBG("fail to create pthread");
+ _ERR("fail to create pthread");
return -1;
}
if (pthread_detach(loggingThread) != 0) {
return -1;
}
if (pthread_detach(loggingThread) != 0) {
- _DBG("fail to detach pthread");
+ _ERR("fail to detach pthread");
{
__dllPath = new DllPath();
if (!__dllPath) {
{
__dllPath = new DllPath();
if (!__dllPath) {
- fprintf(stderr, "fail to allocate memory for dll path structure\n");
+ _ERR("fail to allocate memory for dll path structure\n");
+ _INFO("Path manager initialize success");
+
if (__pluginLib) {
__pluginFunc = (PluginFunc*)calloc(sizeof(PluginFunc), 1);
if (!__pluginFunc) {
if (__pluginLib) {
__pluginFunc = (PluginFunc*)calloc(sizeof(PluginFunc), 1);
if (!__pluginFunc) {
- fprintf(stderr, "fail to allocate memory for plugin function structure\n");
+ _ERR("fail to allocate memory for plugin function structure");
return -1;
}
__pluginFunc->initialize = (plugin_initialize_ptr)dlsym(__pluginLib, "plugin_initialize");
return -1;
}
__pluginFunc->initialize = (plugin_initialize_ptr)dlsym(__pluginLib, "plugin_initialize");
__pluginFunc->initialize(mode);
}
__pluginFunc->initialize(mode);
}
+ _INFO("Plugin manager initialize success");
+