diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-11-18 01:18:24 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-11-18 01:18:24 +0000 |
commit | 2c0a7165efb1ce52be27bd13496e99c5e5c70e48 (patch) | |
tree | a959c8bdd0ac3bb0378d91bbfe68a16858bbc6dc /source4/librpc/rpc/rpc_wkssvc.c | |
parent | 7b185ccb32d685c00ddca9495fafe34bec59ceb3 (diff) | |
download | samba-2c0a7165efb1ce52be27bd13496e99c5e5c70e48.tar.gz samba-2c0a7165efb1ce52be27bd13496e99c5e5c70e48.tar.bz2 samba-2c0a7165efb1ce52be27bd13496e99c5e5c70e48.zip |
* use the new auto-generated debug code method.
* add a couple more info levels to wkssvc
(This used to be commit c69161bdb13745f271b0cfa9a9af349f7a95edc6)
Diffstat (limited to 'source4/librpc/rpc/rpc_wkssvc.c')
-rw-r--r-- | source4/librpc/rpc/rpc_wkssvc.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/source4/librpc/rpc/rpc_wkssvc.c b/source4/librpc/rpc/rpc_wkssvc.c index 0549a35128..1a4b154842 100644 --- a/source4/librpc/rpc/rpc_wkssvc.c +++ b/source4/librpc/rpc/rpc_wkssvc.c @@ -1,4 +1,4 @@ -/* dcerpc client calls auto-generated by pidl */ +/* dcerpc client calls generated by pidl */ #include "includes.h" @@ -6,13 +6,20 @@ NTSTATUS dcerpc_wks_QueryInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct wks_QueryInfo *r) { NTSTATUS status; + + if (p->flags & DCERPC_DEBUG_PRINT_IN) { + NDR_PRINT_IN_DEBUG(wks_QueryInfo, r); + } + status = dcerpc_ndr_request(p, DCERPC_WKS_QUERYINFO, mem_ctx, (ndr_push_fn_t) ndr_push_wks_QueryInfo, (ndr_pull_fn_t) ndr_pull_wks_QueryInfo, r); - if (!NT_STATUS_IS_OK(status)) { - return status; + + if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) { + NDR_PRINT_OUT_DEBUG(wks_QueryInfo, r); } - - return r->out.result; + if (NT_STATUS_IS_OK(status)) status = r->out.result; + + return status; } |