mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-13 06:34:23 -04:00
kern: optimize logging for release kernel strings (saves printf space in .text)
This commit is contained in:
parent
fdf008108c
commit
8b49cea4a9
4 changed files with 53 additions and 8 deletions
|
@ -308,7 +308,7 @@ namespace ams::kern::arch::arm64 {
|
|||
{
|
||||
if (ec != EsrEc_SoftwareStepEl0) {
|
||||
/* If the exception wasn't single-step, print details. */
|
||||
MESOSPHERE_RELEASE_LOG("Exception occurred. %016lx\n", GetCurrentProcess().GetProgramId());
|
||||
MESOSPHERE_EXCEPTION_LOG("Exception occurred. ");
|
||||
|
||||
{
|
||||
/* Print the current thread's registers. */
|
||||
|
@ -327,7 +327,7 @@ namespace ams::kern::arch::arm64 {
|
|||
#else
|
||||
{
|
||||
/* Print that an exception occurred. */
|
||||
MESOSPHERE_RELEASE_LOG("Exception occurred. %016lx\n", GetCurrentProcess().GetProgramId());
|
||||
MESOSPHERE_EXCEPTION_LOG("Exception occurred. ");
|
||||
|
||||
{
|
||||
/* Print the current thread's registers. */
|
||||
|
@ -496,7 +496,7 @@ namespace ams::kern::arch::arm64 {
|
|||
}
|
||||
|
||||
/* Print that an exception occurred. */
|
||||
MESOSPHERE_RELEASE_LOG("Exception occurred. %016lx\n", GetCurrentProcess().GetProgramId());
|
||||
MESOSPHERE_EXCEPTION_LOG("Exception occurred. ");
|
||||
|
||||
/* Exit the current process. */
|
||||
GetCurrentProcess().Exit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue