some debug output for the memory allocator
authorHannes Gredler <hannes@gredler.at>
Mon, 28 Apr 2008 19:06:11 +0000 (21:06 +0200)
committerHannes Gredler <hannes@gredler.at>
Mon, 28 Apr 2008 19:06:11 +0000 (21:06 +0200)
src/olsr.c

index 6f638c3..5407958 100644 (file)
@@ -574,6 +574,12 @@ olsr_malloc(size_t size, const char *id)
       olsr_exit(id, EXIT_FAILURE);
   }
 
+#if 0 
+  /* useful for debugging */
+  olsr_printf(1, "MEMORY: alloc %s %p, %u bytes\n",
+              id, ptr, size);
+#endif
+
   return ptr;
 }