@@ -190,7 +190,7 @@ void mp_delete_global(qstr qstr) {
190190}
191191
192192mp_obj_t mp_unary_op (mp_uint_t op , mp_obj_t arg ) {
193- DEBUG_OP_printf ("unary %d %p\n" , op , arg );
193+ DEBUG_OP_printf ("unary " UINT_FMT " %p\n" , op , arg );
194194
195195 if (MP_OBJ_IS_SMALL_INT (arg )) {
196196 mp_int_t val = MP_OBJ_SMALL_INT_VALUE (arg );
@@ -226,7 +226,7 @@ mp_obj_t mp_unary_op(mp_uint_t op, mp_obj_t arg) {
226226}
227227
228228mp_obj_t mp_binary_op (mp_uint_t op , mp_obj_t lhs , mp_obj_t rhs ) {
229- DEBUG_OP_printf ("binary %d %p %p\n" , op , lhs , rhs );
229+ DEBUG_OP_printf ("binary " UINT_FMT " %p %p\n" , op , lhs , rhs );
230230
231231 // TODO correctly distinguish inplace operators for mutable objects
232232 // lookup logic that CPython uses for +=:
@@ -523,7 +523,7 @@ mp_obj_t mp_call_function_n_kw(mp_obj_t fun_in, mp_uint_t n_args, mp_uint_t n_kw
523523 // TODO improve this: fun object can specify its type and we parse here the arguments,
524524 // passing to the function arrays of fixed and keyword arguments
525525
526- DEBUG_OP_printf ("calling function %p(n_args=%d , n_kw=%d , args=%p)\n" , fun_in , n_args , n_kw , args );
526+ DEBUG_OP_printf ("calling function %p(n_args=" UINT_FMT " , n_kw=" UINT_FMT " , args=%p)\n" , fun_in , n_args , n_kw , args );
527527
528528 // get the type
529529 mp_obj_type_t * type = mp_obj_get_type (fun_in );
@@ -539,7 +539,7 @@ mp_obj_t mp_call_function_n_kw(mp_obj_t fun_in, mp_uint_t n_args, mp_uint_t n_kw
539539// args contains: fun self/NULL arg(0) ... arg(n_args-2) arg(n_args-1) kw_key(0) kw_val(0) ... kw_key(n_kw-1) kw_val(n_kw-1)
540540// if n_args==0 and n_kw==0 then there are only fun and self/NULL
541541mp_obj_t mp_call_method_n_kw (mp_uint_t n_args , mp_uint_t n_kw , const mp_obj_t * args ) {
542- DEBUG_OP_printf ("call method (fun=%p, self=%p, n_args=%u , n_kw=%u , args=%p)\n" , args [0 ], args [1 ], n_args , n_kw , args );
542+ DEBUG_OP_printf ("call method (fun=%p, self=%p, n_args=" UINT_FMT " , n_kw=" UINT_FMT " , args=%p)\n" , args [0 ], args [1 ], n_args , n_kw , args );
543543 int adjust = (args [1 ] == NULL ) ? 0 : 1 ;
544544 return mp_call_function_n_kw (args [0 ], n_args + adjust , n_kw , args + 2 - adjust );
545545}
@@ -732,7 +732,7 @@ void mp_unpack_sequence(mp_obj_t seq_in, mp_uint_t num, mp_obj_t *items) {
732732void mp_unpack_ex (mp_obj_t seq_in , mp_uint_t num_in , mp_obj_t * items ) {
733733 mp_uint_t num_left = num_in & 0xff ;
734734 mp_uint_t num_right = (num_in >> 8 ) & 0xff ;
735- DEBUG_OP_printf ("unpack ex %d %d \n" , num_left , num_right );
735+ DEBUG_OP_printf ("unpack ex " UINT_FMT " " UINT_FMT " \n" , num_left , num_right );
736736 mp_uint_t seq_len ;
737737 if (MP_OBJ_IS_TYPE (seq_in , & mp_type_tuple ) || MP_OBJ_IS_TYPE (seq_in , & mp_type_list )) {
738738 mp_obj_t * seq_items ;
0 commit comments