Browse Source

Formatting, add information about file and line.

release/v0.1
Rafal Kupiec 3 years ago
parent
commit
782a4df1cf
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      engine/vm.c

+ 3
- 3
engine/vm.c View File

@ -1803,9 +1803,9 @@ static sxi32 VmByteCodeDump(
break;
}
/* Format and call the consumer callback */
rc = SyProcFormat(xConsumer, pUserData, "%s %8d %8u %#10x [%u]\n",
VmInstrToString(pInstr->iOp), pInstr->iP1, pInstr->iP2,
SX_PTR_TO_INT(pInstr->p3), n);
rc = SyProcFormat(xConsumer, pUserData, "[%05u] %s %8d %8u %#10x %5u %z\n",
n, VmInstrToString(pInstr->iOp), pInstr->iP1, pInstr->iP2,
SX_PTR_TO_INT(pInstr->p3), pInstr->iLine, pInstr->pFile);
if(rc != SXRET_OK) {
/* Consumer routine request an operation abort */
return rc;


Loading…
Cancel
Save