From 852a950d660baee35ce61f7457a42a5f4404a414 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 30 May 2016 17:18:30 +0200 Subject: [PATCH] fix issue with format string --- extmod/modtrezormsg/modtrezormsg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extmod/modtrezormsg/modtrezormsg.c b/extmod/modtrezormsg/modtrezormsg.c index 3007dc1e..b071713e 100644 --- a/extmod/modtrezormsg/modtrezormsg.c +++ b/extmod/modtrezormsg/modtrezormsg.c @@ -59,9 +59,9 @@ STATIC mp_obj_t mod_TrezorMsg_Msg_setup(mp_obj_t self, mp_obj_t ifaces) { mp_obj_t *attr; mp_obj_tuple_get(iface[i], &attr_cnt, &attr); assert(attr_cnt == 2); - uint8_t ep = mp_obj_get_int(attr[0]); - uint16_t up = mp_obj_get_int(attr[1]); - printf("iface %lu: ep=%d up=%04x\n", i, ep, up); + uint8_t endpoint = mp_obj_get_int(attr[0]); + uint16_t usage_page = mp_obj_get_int(attr[1]); + printf("iface %d: ep=%d up=%04x\n", (uint16_t)i, endpoint, usage_page); } return mp_const_none; }