s4-smbtorture: add NDR_PRINT macros for RAP tests (when called with -d10).
authorGünther Deschner <gd@samba.org>
Wed, 28 Apr 2010 23:13:06 +0000 (01:13 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 29 Apr 2010 10:05:42 +0000 (12:05 +0200)
Guenther

source4/torture/rap/rap.c

index 3add8d4db76921eeed5531650323d504577b62f2..49d55b11621279355f87864e2eb23169fd22a086 100644 (file)
@@ -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: