dssync keytab: wrap printing of the uptodate vector in DEBUGLEVEL >= 10 checks
authorMichael Adam <obnox@samba.org>
Thu, 17 Jul 2008 09:54:32 +0000 (11:54 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 1 Aug 2008 14:04:40 +0000 (16:04 +0200)
Michael
(This used to be commit 7fabe2567d0bd12fe3ade1d00b94b6c403fe79b5)

source3/libnet/libnet_dssync_keytab.c

index 37a4a4e88ed8d2b5934a8de1e7077d4bc41aceaa..ac94d24447fa7d85dc62f0c6942685420fa6b9b1 100644 (file)
@@ -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)) {