Skip to content

Commit 7917b73

Browse files
committed
objfun: More debug logging.
1 parent 5ba58f4 commit 7917b73

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

py/objfun.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ STATIC NORETURN void fun_pos_args_mismatch(mp_obj_fun_bc_t *f, uint expected, ui
182182
bool mp_obj_fun_prepare_simple_args(mp_obj_t self_in, uint n_args, uint n_kw, const mp_obj_t *args,
183183
uint *out_args1_len, const mp_obj_t **out_args1, uint *out_args2_len, const mp_obj_t **out_args2) {
184184
mp_obj_fun_bc_t *self = self_in;
185+
DEBUG_printf("mp_obj_fun_prepare_simple_args: given: %d pos, %d kw, expected: %d pos (%d default)\n",
186+
n_args, n_kw, self->n_pos_args, self->n_def_args);
185187

186188
assert(n_kw == 0);
187189
assert(self->n_kwonly_args == 0);

0 commit comments

Comments
 (0)