From 306b2c1e70dfcab13df6ab9844fe8fb86441df2a Mon Sep 17 00:00:00 2001 From: Maschell <Maschell@gmx.de> Date: Sun, 7 Jun 2020 15:42:47 +0200 Subject: [PATCH] Improve logging --- relocator/src/entry.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/relocator/src/entry.cpp b/relocator/src/entry.cpp index aea400f..5a7b197 100644 --- a/relocator/src/entry.cpp +++ b/relocator/src/entry.cpp @@ -191,11 +191,11 @@ std::vector<ModuleData> OrderModulesByDependencies(const std::vector<ModuleData> bool weDidSomething = false; for (auto const &curModule : loadedModules) { if (std::find(loadedModulesEntrypoints.begin(), loadedModulesEntrypoints.end(), curModule.getEntrypoint()) != loadedModulesEntrypoints.end()) { - DEBUG_FUNCTION_LINE("%s [%08X] is already loaded\n", curModule.getExportName().c_str(), curModule.getEntrypoint()); + // DEBUG_FUNCTION_LINE("%s [%08X] is already loaded\n", curModule.getExportName().c_str(), curModule.getEntrypoint()); continue; } canBreak = false; - DEBUG_FUNCTION_LINE("Missing %s\n", curModule.getExportName().c_str()); + DEBUG_FUNCTION_LINE("Check if we can load %s\n", curModule.getExportName().c_str()); std::vector<std::string> importsFromOtherModules; for (auto curReloc: curModule.getRelocationDataList()) { std::string curRPL = curReloc.getImportRPLInformation().getName(); @@ -220,7 +220,7 @@ std::vector<ModuleData> OrderModulesByDependencies(const std::vector<ModuleData> } if (canLoad) { weDidSomething = true; - DEBUG_FUNCTION_LINE("############## load %s\n", curModule.getExportName().c_str()); + DEBUG_FUNCTION_LINE("We can load: %s\n", curModule.getExportName().c_str()); finalOrder.push_back(curModule); loadedModulesExportNames.push_back(curModule.getExportName()); loadedModulesEntrypoints.push_back(curModule.getEntrypoint());