10 * Output goes to debug.log
12 * debug(()) (note the double brackets) is like printf().
14 * dmemdump() and dmemdumpl() both do memory dumps. The difference
15 * is that dmemdumpl() is more suited for when where the memory is is
16 * important (say because you'll be recording pointer values later
17 * on). dmemdump() is more concise.
21 void dprintf(char *fmt, ...);
22 void debug_memdump (void *buf, int len, int L);
23 #define debug(x) (dprintf x)
24 #define dmemdump(buf,len) debug_memdump (buf, len, 0);
25 #define dmemdumpl(buf,len) debug_memdump (buf, len, 1);
28 #define dmemdump(buf,len)
29 #define dmemdumpl(buf,len)
34 #define lenof(x) ( (sizeof((x))) / (sizeof(*(x))))