mirror of
https://github.com/wiiu-env/FunctionPatcherModule.git
synced 2024-11-13 05:25:12 +01:00
Reduce the amount of logged messages
This commit is contained in:
parent
c8df49e85c
commit
57a932888a
@ -81,7 +81,7 @@ void FunctionPatcherPatchFunction(function_replacement_data_t *replacements, uin
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG_FUNCTION_LINE("Patching %s ...", function_data->function_name);
|
||||
DEBUG_FUNCTION_LINE_VERBOSE("Patching %s ...", function_data->function_name);
|
||||
|
||||
uint32_t physical = function_data->physicalAddr;
|
||||
uint32_t repl_addr = (uint32_t) function_data->replaceAddr;
|
||||
@ -205,17 +205,17 @@ void FunctionPatcherPatchFunction(function_replacement_data_t *replacements, uin
|
||||
CThread::runOnAllCores(writeDataAndFlushIC, data);
|
||||
|
||||
function_data->alreadyPatched = 1;
|
||||
DEBUG_FUNCTION_LINE("done with patching %s!", function_data->function_name);
|
||||
DEBUG_FUNCTION_LINE_VERBOSE("done with patching %s!", function_data->function_name);
|
||||
|
||||
}
|
||||
//DEBUG_FUNCTION_LINE("Done with patching given functions!");
|
||||
DEBUG_FUNCTION_LINE_VERBOSE("Done with patching given functions!");
|
||||
|
||||
}
|
||||
|
||||
void FunctionPatcherRestoreFunctions(function_replacement_data_t *replacements, uint32_t size) {
|
||||
DEBUG_FUNCTION_LINE("Restoring given functions!");
|
||||
for (uint32_t i = 0; i < size; i++) {
|
||||
DEBUG_FUNCTION_LINE("Restoring %s... ", replacements[i].function_name);
|
||||
DEBUG_FUNCTION_LINE_VERBOSE("Restoring %s... ", replacements[i].function_name);
|
||||
if (replacements[i].restoreInstruction == 0 || replacements[i].realAddr == 0) {
|
||||
DEBUG_FUNCTION_LINE("I dont have the information for the restore =( skip");
|
||||
continue;
|
||||
@ -394,7 +394,7 @@ void FunctionPatcherResetLibHandles() {
|
||||
|
||||
for (int32_t i = 0; i < rpl_handles_size; i++) {
|
||||
if (rpl_handles[i].handle != 0) {
|
||||
DEBUG_FUNCTION_LINE("Resetting handle for rpl: %s", rpl_handles[i].rplname);
|
||||
DEBUG_FUNCTION_LINE_VERBOSE("Resetting handle for rpl: %s", rpl_handles[i].rplname);
|
||||
}
|
||||
rpl_handles[i].handle = 0;
|
||||
// Release handle?
|
||||
|
@ -15,6 +15,8 @@ extern "C" {
|
||||
OSFatal_printf("[%s]%s@L%04d: " FMT "",__FILENAME__,__FUNCTION__, __LINE__, ## ARGS); \
|
||||
} while (0)
|
||||
|
||||
#define DEBUG_FUNCTION_LINE_VERBOSE(FMT, ARGS...) while(0)
|
||||
|
||||
#define DEBUG_FUNCTION_LINE(FMT, ARGS...)do { \
|
||||
WHBLogPrintf("[%23s]%30s@L%04d: " FMT "",__FILENAME__,__FUNCTION__, __LINE__, ## ARGS); \
|
||||
} while (0);
|
||||
|
Loading…
Reference in New Issue
Block a user