diff options
| author | Jeff Epler <jepler@gmail.com> | 2025-07-06 08:12:01 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-07-25 10:59:51 +1000 |
| commit | 2d93909ebe050ab08abf7de63f735b1417e02084 (patch) | |
| tree | 0a67dfd0f22f6ddb4086f6928c62bb0f4ea03fa5 | |
| parent | 18a835e9b4019a1b141f481af902e172daceb8e9 (diff) | |
extmod/modlwip: Print timeout with correct format string.
As timeout is of type `mp_uint_t`, it must be printed with UINT_FMT.
Before, the compiler plugin produced an error in the PYBD_SF6 build, which
is a nanboxing build with 64-bit ints.
Signed-off-by: Jeff Epler <jepler@gmail.com>
| -rw-r--r-- | extmod/modlwip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/modlwip.c b/extmod/modlwip.c index b53559ed8..b84b3b762 100644 --- a/extmod/modlwip.c +++ b/extmod/modlwip.c @@ -907,7 +907,7 @@ static const mp_obj_type_t lwip_socket_type; static void lwip_socket_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) { lwip_socket_obj_t *self = MP_OBJ_TO_PTR(self_in); - mp_printf(print, "<socket state=%d timeout=%d incoming=", self->state, self->timeout); + mp_printf(print, "<socket state=%d timeout=" UINT_FMT " incoming=", self->state, self->timeout); if (self->type == MOD_NETWORK_SOCK_STREAM) { mp_printf(print, "%p off=%d>", self->incoming.tcp.pbuf, self->recv_offset); } else { |
