mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-05 20:02:19 +03:00
more debug stuff
This commit is contained in:
1 parent
5bb879c2ba
commit
830a4c7188
1 file changed
+6
-1
+6
-1
@@ -6,9 +6,12 @@
|
||||
* README for terms of use.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "debug.h"
|
||||
#include "mem.h"
|
||||
#include "coap_list.h"
|
||||
|
||||
@@ -71,7 +74,9 @@ coap_list_t *
|
||||
coap_new_listnode(void *data, void (*delete_func)(void *) ) {
|
||||
coap_list_t *node = coap_malloc( sizeof(coap_list_t) );
|
||||
if ( ! node ) {
|
||||
perror ("coap_new_listnode: malloc");
|
||||
#ifndef NDEBUG
|
||||
coap_log(LOG_CRIT, "coap_new_listnode: malloc\n");
|
||||
#endif
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user