mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
r19304: If you really want to look at the contents undef this one
(This used to be commit fe20ac404d654abe31729664584391f3b3cd0214)
This commit is contained in:
parent
44146fc878
commit
666a72e39a
@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user