mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/wakaama: fix string format and integer conversions
This commit is contained in:
parent
c2898c6a3a
commit
b053e070f4
@ -176,12 +176,12 @@ static void *_lwm2m_client_run(void *arg)
|
||||
lwm2m_client_connection_t *conn = lwm2m_client_connection_find(
|
||||
_client_data->conn_list, &remote);
|
||||
if (conn) {
|
||||
DEBUG("lwm2m_connection_handle_packet(%d)\n", rcv_len);
|
||||
DEBUG("lwm2m_connection_handle_packet(%i)\n", (int)rcv_len);
|
||||
int result = lwm2m_connection_handle_packet(conn, rcv_buf,
|
||||
rcv_len,
|
||||
_client_data);
|
||||
if (0 != result) {
|
||||
DEBUG("error handling message %d\n", result);
|
||||
DEBUG("error handling message %i\n", result);
|
||||
}
|
||||
}
|
||||
else {
|
||||
@ -190,10 +190,10 @@ static void *_lwm2m_client_run(void *arg)
|
||||
}
|
||||
else if ((rcv_len < 0) &&
|
||||
((rcv_len != -EAGAIN) && (rcv_len != -ETIMEDOUT))) {
|
||||
DEBUG("Unexpected sock_udp_recv error code %i\n", rcv_len);
|
||||
DEBUG("Unexpected sock_udp_recv error code %i\n", (int)rcv_len);
|
||||
}
|
||||
else {
|
||||
DEBUG("UDP error code: %d\n", rcv_len);
|
||||
DEBUG("UDP error code: %i\n", (int)rcv_len);
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
|
@ -261,7 +261,7 @@ static int _connection_send(lwm2m_client_connection_t *conn, uint8_t *buffer,
|
||||
ssize_t sent_bytes = sock_udp_send(&(client_data->sock), buffer,
|
||||
buffer_size, &(conn->remote));
|
||||
if (sent_bytes <= 0) {
|
||||
DEBUG("[_connection_send] Could not send UDP packet: %d\n", sent_bytes);
|
||||
DEBUG("[_connection_send] Could not send UDP packet: %i\n", (int)sent_bytes);
|
||||
return -1;
|
||||
}
|
||||
conn->last_send = lwm2m_gettime();
|
||||
|
Loading…
Reference in New Issue
Block a user