diff --git a/packages/SwingSet/src/kernel/vat-warehouse.js b/packages/SwingSet/src/kernel/vat-warehouse.js index 1e9c7bc78f3..2c2dbe07377 100644 --- a/packages/SwingSet/src/kernel/vat-warehouse.js +++ b/packages/SwingSet/src/kernel/vat-warehouse.js @@ -97,7 +97,7 @@ export function makeSyscallSimulator( deliveryNum, transcriptEntry, ) { - const context = `anachrophobia in ${vatID} delivery ${deliveryNum}`; + const context = `anachrophobia in ${vatID} delivery d${deliveryNum}`; const syscallsExpected = [...transcriptEntry.sc]; // copy const syscallsMade = []; // syscallStatus's length will be max(syscallsExpected, @@ -109,35 +109,35 @@ export function makeSyscallSimulator( const explain = () => { console.log( - `anachrophobia strikes ${vatID} syscalls for delivery ${deliveryNum}`, + `anachrophobia strikes ${vatID} delivery d${deliveryNum} syscalls`, ); for (const [idx, status] of syscallStatus.entries()) { const expected = syscallsExpected[idx]; const got = syscallsMade[idx]; switch (status) { case 'ok': { - console.log(`sc[${idx}]: ok: ${djson.stringify(got)}`); + console.log(`sc${idx}: ok: ${djson.stringify(got)}`); break; } case 'wrong': { console.log( ` -sc[${idx}]: WRONG +sc${idx}: WRONG expected: ${djson.stringify(expected.s)} got : ${djson.stringify(got)}`.trimStart(), ); break; } case 'extra': { - console.log(`sc[${idx}]: EXTRA: ${djson.stringify(got)}`); + console.log(`sc${idx}: EXTRA: ${djson.stringify(got)}`); break; } case 'missing': { - console.log(`sc[${idx}]: MISSING: ${djson.stringify(expected.s)}`); + console.log(`sc${idx}: MISSING: ${djson.stringify(expected.s)}`); break; } default: - Fail`bad ${status}`; + Fail`sc${idx}: bad status ${status}`; } } }; @@ -149,13 +149,13 @@ sc[${idx}]: WRONG const idx = syscallsMade.push(vso) - 1; if (!expected) { syscallStatus.push('extra'); - const error = Error(`${context}: extra syscall at index ${idx}`); + const error = Error(`${context}: extra syscall at index sc${idx}`); replayError ||= error; throw error; } if (!syscallsAreIdentical(expected.s, vso)) { syscallStatus.push('wrong'); - const error = Error(`${context}: wrong syscall at index ${idx}`); + const error = Error(`${context}: wrong syscall at index sc${idx}`); replayError ||= error; throw error; } @@ -171,7 +171,7 @@ sc[${idx}]: WRONG syscallStatus.push('missing'); } const error = Error( - `${context}: missing ${missing} syscall(s) at index ${syscallsMade.length}`, + `${context}: missing ${missing} syscall(s) at index sc${syscallsMade.length}`, ); replayError ||= error; }