From 1467b0e6f6162e67087374d0f78e16a38794a41a Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 29 Apr 2010 01:13:06 +0200 Subject: s4-smbtorture: add NDR_PRINT macros for RAP tests (when called with -d10). Guenther --- source4/torture/rap/rap.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/source4/torture/rap/rap.c b/source4/torture/rap/rap.c index 3add8d4db7..49d55b1162 100644 --- a/source4/torture/rap/rap.c +++ b/source4/torture/rap/rap.c @@ -270,6 +270,10 @@ static NTSTATUS smbcli_rap_netshareenum(struct smbcli_tree *tree, break; } + if (DEBUGLEVEL >= 10) { + NDR_PRINT_IN_DEBUG(rap_NetShareEnum, r); + } + result = rap_cli_do_call(tree, iconv_convenience, call); if (!NT_STATUS_IS_OK(result)) @@ -307,6 +311,9 @@ static NTSTATUS smbcli_rap_netshareenum(struct smbcli_tree *tree, } } + if (DEBUGLEVEL >= 10) { + NDR_PRINT_OUT_DEBUG(rap_NetShareEnum, r); + } result = NT_STATUS_OK; done: @@ -364,6 +371,10 @@ static NTSTATUS smbcli_rap_netserverenum2(struct smbcli_tree *tree, break; } + if (DEBUGLEVEL >= 10) { + NDR_PRINT_IN_DEBUG(rap_NetServerEnum2, r); + } + result = rap_cli_do_call(tree, iconv_convenience, call); if (!NT_STATUS_IS_OK(result)) @@ -404,6 +415,10 @@ static NTSTATUS smbcli_rap_netserverenum2(struct smbcli_tree *tree, } } + if (DEBUGLEVEL >= 10) { + NDR_PRINT_OUT_DEBUG(rap_NetServerEnum2, r); + } + result = NT_STATUS_OK; done: @@ -470,6 +485,10 @@ NTSTATUS smbcli_rap_netservergetinfo(struct smbcli_tree *tree, goto done; } + if (DEBUGLEVEL >= 10) { + NDR_PRINT_IN_DEBUG(rap_WserverGetInfo, r); + } + result = rap_cli_do_call(tree, iconv_convenience, call); if (!NT_STATUS_IS_OK(result)) @@ -497,6 +516,10 @@ NTSTATUS smbcli_rap_netservergetinfo(struct smbcli_tree *tree, r->out.convert, &r->out.info.info1.comment)); } + + if (DEBUGLEVEL >= 10) { + NDR_PRINT_OUT_DEBUG(rap_WserverGetInfo, r); + } done: talloc_free(call); return result; @@ -543,6 +566,10 @@ NTSTATUS smbcli_rap_netprintqenum(struct smbcli_tree *tree, goto done; } + if (DEBUGLEVEL >= 10) { + NDR_PRINT_IN_DEBUG(rap_NetPrintQEnum, r); + } + result = rap_cli_do_call(tree, iconv_convenience, call); if (!NT_STATUS_IS_OK(result)) @@ -603,6 +630,10 @@ NTSTATUS smbcli_rap_netprintqenum(struct smbcli_tree *tree, } } + if (DEBUGLEVEL >= 10) { + NDR_PRINT_OUT_DEBUG(rap_NetPrintQEnum, r); + } + result = NT_STATUS_OK; done: -- cgit