]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r19304: If you really want to look at the contents undef this one
authorSimo Sorce <idra@samba.org>
Mon, 16 Oct 2006 01:00:47 +0000 (01:00 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:21:05 +0000 (14:21 -0500)
(This used to be commit fe20ac404d654abe31729664584391f3b3cd0214)

source4/lib/talloc/talloc.c

index 15b27c61ee280e18746002ed053f9b6c0ad1a4d5..87b4d51ba4ffb3db6b1baabd170d60cc53759e1f 100644 (file)
@@ -886,6 +886,23 @@ static void talloc_report_depth_FILE_helper(const void *ptr, int depth, int max_
                (unsigned long)talloc_total_size(ptr),
                (unsigned long)talloc_total_blocks(ptr),
                (int)talloc_reference_count(ptr));
+
+#if 0
+       fprintf(f, "content: ");
+       if (talloc_total_size(ptr)) {
+               int tot = talloc_total_size(ptr);
+               int i;
+
+               for (i = 0; i < tot; i++) {
+                       if ((((char *)ptr)[i] > 31) && (((char *)ptr)[i] < 126)) {
+                               fprintf(f, "%c", ((char *)ptr)[i]);
+                       } else {
+                               fprintf(f, "~%02x", ((char *)ptr)[i]);
+                       }
+               }
+       }
+       fprintf(f, "\n");
+#endif
 }
 
 /*