mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 10:52:44 +01:00
nanocoap_sock: output diagnostic response when DEBUG is enabled
This commit is contained in:
parent
f7160325bd
commit
66d6aece65
@ -615,6 +615,8 @@ static int _block_cb(void *arg, coap_pkt_t *pkt)
|
||||
|
||||
int res = _get_error(pkt);
|
||||
if (res) {
|
||||
pkt->payload[pkt->payload_len] = 0;
|
||||
DEBUG("nanocoap: %u '%s'\n", coap_get_code_decimal(pkt), (char *)pkt->payload);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user