video-core: Migrate logging macros (#3878)
* video-core: Migrate logging macros * video-core: Fixed missed clang format * video-core: Migrated LOG_GENERIC macro
This commit is contained in:
@@ -178,11 +178,12 @@ void DumpShader(const std::string& filename, const ShaderRegs& config,
|
||||
}
|
||||
} catch (const std::out_of_range&) {
|
||||
DEBUG_ASSERT_MSG(false, "Unknown output attribute mapping");
|
||||
LOG_ERROR(HW_GPU, "Unknown output attribute mapping: %03x, %03x, %03x, %03x",
|
||||
(int)output_attributes[i].map_x.Value(),
|
||||
(int)output_attributes[i].map_y.Value(),
|
||||
(int)output_attributes[i].map_z.Value(),
|
||||
(int)output_attributes[i].map_w.Value());
|
||||
NGLOG_ERROR(HW_GPU,
|
||||
"Unknown output attribute mapping: {:03x}, {:03x}, {:03x}, {:03x}",
|
||||
(int)output_attributes[i].map_x.Value(),
|
||||
(int)output_attributes[i].map_y.Value(),
|
||||
(int)output_attributes[i].map_z.Value(),
|
||||
(int)output_attributes[i].map_w.Value());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -277,7 +278,7 @@ bool g_is_pica_tracing = false;
|
||||
|
||||
void StartPicaTracing() {
|
||||
if (g_is_pica_tracing) {
|
||||
LOG_WARNING(HW_GPU, "StartPicaTracing called even though tracing already running!");
|
||||
NGLOG_WARNING(HW_GPU, "StartPicaTracing called even though tracing already running!");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -298,7 +299,7 @@ void OnPicaRegWrite(PicaTrace::Write write) {
|
||||
|
||||
std::unique_ptr<PicaTrace> FinishPicaTracing() {
|
||||
if (!g_is_pica_tracing) {
|
||||
LOG_WARNING(HW_GPU, "FinishPicaTracing called even though tracing isn't running!");
|
||||
NGLOG_WARNING(HW_GPU, "FinishPicaTracing called even though tracing isn't running!");
|
||||
return {};
|
||||
}
|
||||
|
||||
@@ -456,7 +457,7 @@ void DumpTevStageConfig(const std::array<TexturingRegs::TevStageConfig, 6>& stag
|
||||
GetTevStageConfigColorCombinerString(tev_stage) + " " +
|
||||
GetTevStageConfigAlphaCombinerString(tev_stage) + "\n";
|
||||
}
|
||||
LOG_TRACE(HW_GPU, "%s", stage_info.c_str());
|
||||
NGLOG_TRACE(HW_GPU, "{}", stage_info);
|
||||
}
|
||||
|
||||
} // namespace DebugUtils
|
||||
|
Reference in New Issue
Block a user