mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
LOG macro improved
This commit is contained in:
parent
1f3433464c
commit
cc46f2d7e6
3 changed files with 10 additions and 10 deletions
|
@ -106,10 +106,10 @@ namespace logs
|
||||||
|
|
||||||
// Legacy:
|
// Legacy:
|
||||||
|
|
||||||
#define LOG_SUCCESS(ch, fmt, ...) logs::ch.success(fmt, ##__VA_ARGS__)
|
#define LOG_SUCCESS(ch, fmt, ...) logs::ch.success("" fmt, ##__VA_ARGS__)
|
||||||
#define LOG_NOTICE(ch, fmt, ...) logs::ch.notice (fmt, ##__VA_ARGS__)
|
#define LOG_NOTICE(ch, fmt, ...) logs::ch.notice ("" fmt, ##__VA_ARGS__)
|
||||||
#define LOG_WARNING(ch, fmt, ...) logs::ch.warning(fmt, ##__VA_ARGS__)
|
#define LOG_WARNING(ch, fmt, ...) logs::ch.warning("" fmt, ##__VA_ARGS__)
|
||||||
#define LOG_ERROR(ch, fmt, ...) logs::ch.error (fmt, ##__VA_ARGS__)
|
#define LOG_ERROR(ch, fmt, ...) logs::ch.error ("" fmt, ##__VA_ARGS__)
|
||||||
#define LOG_TODO(ch, fmt, ...) logs::ch.todo (fmt, ##__VA_ARGS__)
|
#define LOG_TODO(ch, fmt, ...) logs::ch.todo ("" fmt, ##__VA_ARGS__)
|
||||||
#define LOG_TRACE(ch, fmt, ...) logs::ch.trace (fmt, ##__VA_ARGS__)
|
#define LOG_TRACE(ch, fmt, ...) logs::ch.trace ("" fmt, ##__VA_ARGS__)
|
||||||
#define LOG_FATAL(ch, fmt, ...) logs::ch.fatal (fmt, ##__VA_ARGS__)
|
#define LOG_FATAL(ch, fmt, ...) logs::ch.fatal ("" fmt, ##__VA_ARGS__)
|
||||||
|
|
|
@ -359,7 +359,7 @@ void GLFragmentProgram::Compile()
|
||||||
delete[] buf;
|
delete[] buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_NOTICE(RSX, shader.c_str()); // Log the text of the shader that failed to compile
|
LOG_NOTICE(RSX, "%s", shader); // Log the text of the shader that failed to compile
|
||||||
Emu.Pause(); // Pause the emulator, we can't really continue from here
|
Emu.Pause(); // Pause the emulator, we can't really continue from here
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -291,8 +291,8 @@ namespace vk
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LOG_ERROR(RSX, shader_object.getInfoLog());
|
LOG_ERROR(RSX, "%s", shader_object.getInfoLog());
|
||||||
LOG_ERROR(RSX, shader_object.getInfoDebugLog());
|
LOG_ERROR(RSX, "%s", shader_object.getInfoDebugLog());
|
||||||
}
|
}
|
||||||
|
|
||||||
glslang::FinalizeProcess();
|
glslang::FinalizeProcess();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue