Tool load failure report changing to unconditional print bcos it's already is controlled with the env var

Change-Id: I91b400ba94575a32005e825e6b41bda05c55b357
Этот коммит содержится в:
Evgeny
2018-05-03 14:01:59 -05:00
родитель a20cceb425
Коммит 0e0be791ec
2 изменённых файлов: 5 добавлений и 1 удалений
+1 -1
Просмотреть файл
@@ -1373,7 +1373,7 @@ void Runtime::LoadTools() {
}
else {
if (flag().report_tool_load_failures())
debug_print("Tool lib \"%s\" failed to load.\n", name.c_str());
fprintf(stderr, "Tool lib \"%s\" failed to load.\n", name.c_str());
}
}
}
+4
Просмотреть файл
@@ -86,7 +86,11 @@ class Flag {
tools_lib_names_ = os::GetEnvVar("HSA_TOOLS_LIB");
var = os::GetEnvVar("HSA_TOOLS_REPORT_LOAD_FAILURE");
#ifdef NDEBUG
report_tool_load_failures_ = (var == "1") ? true : false;
#else
report_tool_load_failures_ = (var == "0") ? false : true;
#endif
var = os::GetEnvVar("HSA_DISABLE_FRAGMENT_ALLOCATOR");
disable_fragment_alloc_ = (var == "1") ? true : false;