PERFORCE change 122031 for review
Fredrik Lindberg
fli at FreeBSD.org
Wed Jun 20 11:42:38 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=122031
Change 122031 by fli at fli_genesis on 2007/06/20 11:42:27
- Add several new debugging printout controls.
- Tweak the HEXDUMP-code a bit (ie. make it work))
Affected files ...
.. //depot/projects/soc2007/fli-mdns_sd/mdnsd/debug.h#2 edit
Differences ...
==== //depot/projects/soc2007/fli-mdns_sd/mdnsd/debug.h#2 (text+ko) ====
@@ -34,10 +34,16 @@
#define DEBUG_WQUEUE 0x0001
#define DEBUG_EVENT 0x0002
#define DEBUG_STACK 0x0004
-#define DEBUG_CACHE 0x0008
+#define DEBUG_BUF 0x0008
#define DEBUG_RECV 0x0010
#define DEBUG_SEND 0x0020
-#define DEBUG_MISC 0x0040
+#define DEBUG_REC 0x0040
+#define DEBUG_CACHE 0x0080
+#define DEBUG_DBR 0x0100
+#define DEBUG_CFG 0x0200
+#define DEBUG_CFGPARSE 0x0400
+#define DEBUG_VAR 0x0800
+#define DEBUG_MISC 0x1000
/*
* Structure initialization protection
@@ -57,10 +63,10 @@
#endif
#ifdef DEBUG
-# define HEXDUMP(buf, _len) do { \
+# define HEXDUMP(__buf, _len) do { \
{ \
size_t __tmp; \
- char *__buf = (char *)buf; \
+ char *__buf = (char *)__buf; \
for (__tmp = 0; __tmp < _len; __tmp++) \
printf("%.2x ", *__buf++); \
printf("\n"); \
More information about the p4-projects
mailing list