Add displaying title IDs for ARM11 exceptions

This commit is contained in:
Aurora Wright 2017-04-27 22:17:19 +02:00
parent c5369a5cad
commit e151b3d4ef

View File

@ -155,8 +155,14 @@ void detectAndProcessExceptionDumps(void)
if(dumpHeader->processor == 11 && dumpHeader->additionalDataSize != 0) if(dumpHeader->processor == 11 && dumpHeader->additionalDataSize != 0)
{ {
char processName[] = "Current process: "; char processName[45] = "Current process: ";
memcpy(processName + sizeof(processName) - 9, (void *)additionalData, 8); memcpy(processName + 17, (void *)additionalData, 8);
hexItoa(*((u32 *)additionalData + 3), hexString, 8, true);
concatenateStrings(processName, " (");
concatenateStrings(processName, hexString);
hexItoa(*((u32 *)additionalData + 2), hexString, 8, true);
concatenateStrings(processName, hexString);
concatenateStrings(processName, ")");
posY = drawString(processName, true, 10, posY + SPACING_Y, COLOR_WHITE); posY = drawString(processName, true, 10, posY + SPACING_Y, COLOR_WHITE);
} }