util/log: Remove log_error, replace occurances with log_warning

log_error was using the log_writer_fatal impl which conflicts with
how this is used on AVS. Therefore, achieve a visible "error"
message in inject by using log_warning + ERROR string in the message
This commit is contained in:
icex2
2020-09-02 19:53:07 +00:00
parent 475d438ec7
commit 917dc88826
4 changed files with 31 additions and 33 deletions
+4 -4
View File
@@ -54,12 +54,12 @@ static bool verify_hook_dll_and_exec_args_and_count_hooks(
}
if (!(*hooks)) {
log_error("No Hook DLL(s) specified before executable");
log_warning("ERROR: No Hook DLL(s) specified before executable");
return false;
}
if (!*exec_arg_pos) {
log_error("No executable specified");
log_warning("ERROR: No executable specified");
return false;
}
@@ -83,8 +83,8 @@ verify_hook_dlls_exist(int argc, char **argv, uint32_t hook_dll_count)
SearchPath(NULL, argv[i + 1], NULL, MAX_PATH, dll_path, NULL);
if (dll_path_length == 0) {
log_error(
"Hook DLL not found: %08x", (unsigned int) GetLastError());
log_warning(
"ERROR: Hook DLL not found: %08x", (unsigned int) GetLastError());
return false;
}