Formatting for VM dump.
All checks were successful
The build was successful.

This commit is contained in:
Rafal Kupiec 2018-08-27 12:16:41 +02:00
parent fb671ec2d7
commit 8f7b28d46c
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -1832,10 +1832,9 @@ static sxi32 VmByteCodeDump(
void *pUserData /* Last argument to xConsumer() */
) {
static const char zDump[] = {
"====================================================\n"
"PH7 VM Dump Copyright (C) 2011-2012 Symisc Systems\n"
" http://www.symisc.net/\n"
"====================================================\n"
"===============================================================================================\n"
" SEQ | INSTRUCTION | P1 | P2 | P3 | LINE | SOURCE FILE \n"
"===============================================================================================\n"
};
VmInstr *pInstr, *pEnd;
sxi32 rc = SXRET_OK;
@ -1852,7 +1851,7 @@ static sxi32 VmByteCodeDump(
break;
}
/* Format and call the consumer callback */
rc = SyProcFormat(xConsumer, pUserData, "[%05u] %s %8d %8u %#10x %5u %z\n",
rc = SyProcFormat(xConsumer, pUserData, " #%06u | %-10s | %8d | %8u | %#10x | %6u | %z\n",
n, VmInstrToString(pInstr->iOp), pInstr->iP1, pInstr->iP2,
SX_PTR_TO_INT(pInstr->p3), pInstr->iLine, pInstr->pFile);
if(rc != SXRET_OK) {