PERFORCE change 123575 for review

Fredrik Lindberg fli at FreeBSD.org
Mon Jul 16 01:43:42 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=123575

Change 123575 by fli at fli_nexus on 2007/07/16 01:43:17

	- Give the object allocator an debug output mask
	- Fix hexdumping code (again)

Affected files ...

.. //depot/projects/soc2007/fli-mdns_sd/mdnsd/debug.h#3 edit

Differences ...

==== //depot/projects/soc2007/fli-mdns_sd/mdnsd/debug.h#3 (text+ko) ====

@@ -44,6 +44,7 @@
 #define DEBUG_CFGPARSE	0x0400
 #define DEBUG_VAR		0x0800
 #define DEBUG_MISC		0x1000
+#define DEBUG_OA		0x2000
 
 /*
  * Structure initialization protection
@@ -63,10 +64,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