more debug stuff

This commit is contained in:
Olaf Bergmann committed 2011-12-11 16:07:20 +01:00
1 parent 5bb879c2ba
commit 830a4c7188
1 file changed
+6 -1
+6 -1
View File
@@ -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;
}