summaryrefslogtreecommitdiff
path: root/source4/lib/talloc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-06-21 19:26:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:15 -0500
commit3a0a00f1b99757976218924b14082ce765ca1d7c (patch)
tree1fdcd656a4f601e9a53ab45235153f78737127dc /source4/lib/talloc
parent0f29d9fb3f2336f723762359b1ffe651cdd11f5b (diff)
downloadsamba-3a0a00f1b99757976218924b14082ce765ca1d7c.tar.gz
samba-3a0a00f1b99757976218924b14082ce765ca1d7c.tar.bz2
samba-3a0a00f1b99757976218924b14082ce765ca1d7c.zip
r16445: print out values
metze (This used to be commit 972634b2021e60b27d68b0fd6d49ef95398d92e2)
Diffstat (limited to 'source4/lib/talloc')
-rw-r--r--source4/lib/talloc/testsuite.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/lib/talloc/testsuite.c b/source4/lib/talloc/testsuite.c
index 334aa3c2e1..10810f30e9 100644
--- a/source4/lib/talloc/testsuite.c
+++ b/source4/lib/talloc/testsuite.c
@@ -389,7 +389,8 @@ static BOOL test_misc(void)
talloc_set_name(p1, "my name is %s", "foo");
if (strcmp(talloc_get_name(p1), "my name is foo") != 0) {
- printf("failed: wrong name after talloc_set_name\n");
+ printf("failed: wrong name after talloc_set_name(my name is foo) - '%s'\n",
+ talloc_get_name(p1));
return False;
}
CHECK_BLOCKS(p1, 2);
@@ -397,7 +398,8 @@ static BOOL test_misc(void)
talloc_set_name_const(p1, NULL);
if (strcmp(talloc_get_name(p1), "UNNAMED") != 0) {
- printf("failed: wrong name after talloc_set_name(NULL)\n");
+ printf("failed: wrong name after talloc_set_name(NULL) - '%s'\n",
+ talloc_get_name(p1));
return False;
}
CHECK_BLOCKS(p1, 2);