net/nanocoap: improve debug messages

This commit is contained in:
Ken Bannister 2018-12-25 00:38:45 -05:00
parent 86ff4d3dc5
commit 27ba81eed0

View File

@ -52,7 +52,7 @@ ssize_t nanocoap_request(coap_pkt_t *pkt, sock_udp_ep_t *local, sock_udp_ep_t *r
res = sock_udp_send(&sock, buf, pdu_len, NULL); res = sock_udp_send(&sock, buf, pdu_len, NULL);
if (res <= 0) { if (res <= 0) {
DEBUG("nanocoap: error sending coap request\n"); DEBUG("nanocoap: error sending coap request, %d\n", (int)res);
break; break;
} }
@ -68,7 +68,7 @@ ssize_t nanocoap_request(coap_pkt_t *pkt, sock_udp_ep_t *local, sock_udp_ep_t *r
} }
continue; continue;
} }
DEBUG("nanocoap: error receiving coap request\n"); DEBUG("nanocoap: error receiving coap response, %d\n", (int)res);
break; break;
} }
else { else {