Blame view

RIOT/pkg/libcoap/patches/0008-fix-debug-out-in-PDU-parsing.patch 743 Bytes
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  From 3409c3834022c9e7cd73ac69e34dfaa101947cf0 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 9372570..86c7793 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.5.0