Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jun 2007 11:42:37 GMT
From:      Fredrik Lindberg <fli@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 122031 for review
Message-ID:  <200706201142.l5KBgboZ056520@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=122031

Change 122031 by fli@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"); \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706201142.l5KBgboZ056520>