From 0009d1771a757c1df152693840991ecc57564f34 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 15 Sep 2010 09:53:49 +1000 Subject: s4-libnet: print the domain name on domain open failure Pair-Programmed-With: Andrew Bartlett --- source4/torture/libnet/domain.c | 3 ++- source4/torture/libnet/libnet_domain.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'source4/torture/libnet') diff --git a/source4/torture/libnet/domain.c b/source4/torture/libnet/domain.c index c523eeeab4..c73682f972 100644 --- a/source4/torture/libnet/domain.c +++ b/source4/torture/libnet/domain.c @@ -39,7 +39,8 @@ static bool test_domainopen(struct torture_context *tctx, status = libnet_DomainOpen(net_ctx, mem_ctx, &io); if (!NT_STATUS_IS_OK(status)) { - torture_comment(tctx, "Composite domain open failed - %s\n", nt_errstr(status)); + torture_comment(tctx, "Composite domain open failed for domain '%s' - %s\n", + domname->string, nt_errstr(status)); return false; } diff --git a/source4/torture/libnet/libnet_domain.c b/source4/torture/libnet/libnet_domain.c index 8cce172192..142b6e9f61 100644 --- a/source4/torture/libnet/libnet_domain.c +++ b/source4/torture/libnet/libnet_domain.c @@ -271,7 +271,8 @@ bool torture_domain_open_samr(struct torture_context *torture) status = libnet_DomainOpen(ctx, mem_ctx, &io); if (!NT_STATUS_IS_OK(status)) { - torture_comment(torture, "Composite domain open failed - %s\n", nt_errstr(status)); + torture_comment(torture, "Composite domain open failed for domain '%s' - %s\n", + domain_name, nt_errstr(status)); ret = false; goto done; } -- cgit