summaryrefslogtreecommitdiff
path: root/source3/libnet
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-07-17 11:54:32 +0200
committerMichael Adam <obnox@samba.org>2008-08-01 16:04:40 +0200
commit9f6af6fe7c36f12c6871ba654ee470d2ff951803 (patch)
tree9024406dad440f19c8c6c87984c53da75c87203f /source3/libnet
parent0db26805da4f62c313237e762a81cebbe0f0357c (diff)
downloadsamba-9f6af6fe7c36f12c6871ba654ee470d2ff951803.tar.gz
samba-9f6af6fe7c36f12c6871ba654ee470d2ff951803.tar.bz2
samba-9f6af6fe7c36f12c6871ba654ee470d2ff951803.zip
dssync keytab: wrap printing of the uptodate vector in DEBUGLEVEL >= 10 checks
Michael (This used to be commit 7fabe2567d0bd12fe3ade1d00b94b6c403fe79b5)
Diffstat (limited to 'source3/libnet')
-rw-r--r--source3/libnet/libnet_dssync_keytab.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/libnet/libnet_dssync_keytab.c b/source3/libnet/libnet_dssync_keytab.c
index 37a4a4e88e..ac94d24447 100644
--- a/source3/libnet/libnet_dssync_keytab.c
+++ b/source3/libnet/libnet_dssync_keytab.c
@@ -87,7 +87,9 @@ static NTSTATUS keytab_startup(struct dssync_context *ctx, TALLOC_CTX *mem_ctx,
return status;
}
- NDR_PRINT_DEBUG(replUpToDateVectorBlob, old_utdv);
+ if (DEBUGLEVEL >= 10) {
+ NDR_PRINT_DEBUG(replUpToDateVectorBlob, old_utdv);
+ }
}
if (pold_utdv) {
@@ -109,7 +111,10 @@ static NTSTATUS keytab_finish(struct dssync_context *ctx, TALLOC_CTX *mem_ctx,
enum ndr_err_code ndr_err;
DATA_BLOB blob;
- NDR_PRINT_DEBUG(replUpToDateVectorBlob, new_utdv);
+ if (DEBUGLEVEL >= 10) {
+ NDR_PRINT_DEBUG(replUpToDateVectorBlob, new_utdv);
+ }
+
ndr_err = ndr_push_struct_blob(&blob, mem_ctx, new_utdv,
(ndr_push_flags_fn_t)ndr_push_replUpToDateVectorBlob);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {