Skip to content

Commit 00f8f2c

Browse files
committed
Replace oparg with operand in more debug output
1 parent 2f6603e commit 00f8f2c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Python/ceval.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2818,8 +2818,8 @@ _PyUopExecute(_PyExecutorObject *executor, _PyInterpreterFrame *frame, PyObject
28182818
if (lltrace >= 3) {
28192819
const char *opname = opcode < 256 ? _PyOpcode_OpName[opcode] : "";
28202820
int stack_level = (int)(stack_pointer - _PyFrame_Stackbase(frame));
2821-
fprintf(stderr, " uop %s %d, oparg %d, stack_level %d\n",
2822-
opname, opcode, oparg, stack_level);
2821+
fprintf(stderr, " uop %s %d, operand %lld, stack_level %d\n",
2822+
opname, opcode, operand, stack_level);
28232823
}
28242824
#endif
28252825
pc++;
@@ -2845,7 +2845,7 @@ _PyUopExecute(_PyExecutorObject *executor, _PyInterpreterFrame *frame, PyObject
28452845

28462846
default:
28472847
{
2848-
fprintf(stderr, "Unknown uop %d, oparg %d\n", opcode, oparg);
2848+
fprintf(stderr, "Unknown uop %d, operand %ld\n", opcode, operand);
28492849
Py_FatalError("Unknown uop");
28502850
abort(); // Unreachable
28512851
for (;;) {}
@@ -2868,7 +2868,7 @@ _PyUopExecute(_PyExecutorObject *executor, _PyInterpreterFrame *frame, PyObject
28682868
// The caller recovers the frame from cframe.current_frame.
28692869
#ifdef LLTRACE
28702870
if (lltrace >= 2) {
2871-
fprintf(stderr, "Error: [Opcode %d, oparg %d]\n", opcode, oparg);
2871+
fprintf(stderr, "Error: [Opcode %d, operand %lld]\n", opcode, operand);
28722872
}
28732873
#endif
28742874
_PyFrame_SetStackPointer(frame, stack_pointer);
@@ -2885,7 +2885,7 @@ PREDICTED(BINARY_OP)
28852885
// This presumes nothing was popped from the stack (nor pushed).
28862886
#ifdef LLTRACE
28872887
if (lltrace >= 2) {
2888-
fprintf(stderr, "DEOPT: [Opcode %d, oparg %d]\n", opcode, oparg);
2888+
fprintf(stderr, "DEOPT: [Opcode %d, operand %lld]\n", opcode, operand);
28892889
}
28902890
#endif
28912891
_PyFrame_SetStackPointer(frame, stack_pointer);

0 commit comments

Comments
 (0)