From 575e9914f004e8ce003ffda361da158ea70670dd Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 23 Jan 2022 22:17:48 +0100 Subject: [PATCH] Minor formatting and logging cleanup --- relocator/src/entry.cpp | 2 +- source/main.cpp | 1 + source/module/ModuleData.h | 5 ++--- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/relocator/src/entry.cpp b/relocator/src/entry.cpp index d1d8457..60f0760 100644 --- a/relocator/src/entry.cpp +++ b/relocator/src/entry.cpp @@ -181,7 +181,7 @@ extern "C" void doStart(int argc, char **argv) { } } - DEBUG_FUNCTION_LINE_VERBOSE("Relocations done\n"); + DEBUG_FUNCTION_LINE_VERBOSE("Call Relocations done hook\n"); CallHook(loadedModules, WUMS_HOOK_RELOCATIONS_DONE); for (auto &curModule: loadedModules) { diff --git a/source/main.cpp b/source/main.cpp index c9df18a..82f3bd9 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -44,6 +44,7 @@ int main(int argc, char **argv) { } } + DEBUG_FUNCTION_LINE("Setup relocator"); SetupRelocator(); nn::act::Initialize(); diff --git a/source/module/ModuleData.h b/source/module/ModuleData.h index 803f617..7253235 100644 --- a/source/module/ModuleData.h +++ b/source/module/ModuleData.h @@ -28,9 +28,8 @@ #include "FunctionSymbolData.h" struct FunctionSymbolDataComparator { - bool operator()(const std::shared_ptr& lhs, - const std::shared_ptr& rhs) const - { + bool operator()(const std::shared_ptr &lhs, + const std::shared_ptr &rhs) const { return (uint32_t) lhs->getAddress() < (uint32_t) rhs->getAddress(); } };