1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/libcoap/patches/0008-fix-debug-out-in-PDU-parsing.patch

29 lines
748 B
Diff

From 2e896e0e744102502f8243c83d4cc13a4cdfce20 Mon Sep 17 00:00:00 2001
From: Oleg Hahm <oleg@hobbykeller.org>
Date: Tue, 4 Aug 2015 23:09:27 +0200
Subject: [PATCH 8/9] fix debug out in PDU parsing
---
net.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net.c b/net.c
index 8fe08b4..0b8c99e 100644
--- a/net.c
+++ b/net.c
@@ -930,9 +930,10 @@ if (!coap_pdu_parse((unsigned char *)buf, bytes_read, node->pdu)) {
#endif
unsigned char addr[INET6_ADDRSTRLEN+8];
- if (coap_print_addr(&src, addr, INET6_ADDRSTRLEN+8))
+ if (coap_print_addr(&src, addr, INET6_ADDRSTRLEN+8)) {
debug("** received %d bytes from %s:\n", (int)bytes_read, addr);
+ }
coap_show_pdu( node->pdu );
}
#endif
--
2.15.1