diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-09-19 22:39:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:00:48 -0500 |
commit | e3068ef054b6c500e9d9be16ffebda5cb2402f3a (patch) | |
tree | 94dc77a7363146518073d8e5712cfe3e15969c8b /source3/librpc/gen_ndr/srv_dfs.c | |
parent | 8c79b4cbc152dd4df11d3916739bc851b6db2e86 (diff) | |
download | samba-e3068ef054b6c500e9d9be16ffebda5cb2402f3a.tar.gz samba-e3068ef054b6c500e9d9be16ffebda5cb2402f3a.tar.bz2 samba-e3068ef054b6c500e9d9be16ffebda5cb2402f3a.zip |
r18692: Dump debug data when DEBUGLEVEL >= 10
(This used to be commit 503d1a27d5838718355fdd37968c3670f53b1cd7)
Diffstat (limited to 'source3/librpc/gen_ndr/srv_dfs.c')
-rw-r--r-- | source3/librpc/gen_ndr/srv_dfs.c | 138 |
1 files changed, 138 insertions, 0 deletions
diff --git a/source3/librpc/gen_ndr/srv_dfs.c b/source3/librpc/gen_ndr/srv_dfs.c index bb27ab021f..a4da9fbe06 100644 --- a/source3/librpc/gen_ndr/srv_dfs.c +++ b/source3/librpc/gen_ndr/srv_dfs.c @@ -31,6 +31,9 @@ static BOOL api_dfs_GetManagerVersion(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_GetManagerVersion, &r); + ZERO_STRUCT(r.out); r.out.exist_flag = talloc_size(mem_ctx, sizeof(*r.out.exist_flag)); if (r.out.exist_flag == NULL) { @@ -40,6 +43,9 @@ static BOOL api_dfs_GetManagerVersion(pipes_struct *p) _dfs_GetManagerVersion(p, r.out.exist_flag); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_GetManagerVersion, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -88,8 +94,14 @@ static BOOL api_dfs_Add(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_Add, &r); + r.out.result = _dfs_Add(p, r.in.path, r.in.server, r.in.share, r.in.comment, r.in.flags); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_Add, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -138,8 +150,14 @@ static BOOL api_dfs_Remove(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_Remove, &r); + r.out.result = _dfs_Remove(p, r.in.path, r.in.server, r.in.share); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_Remove, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -188,8 +206,14 @@ static BOOL api_dfs_SetInfo(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_SetInfo, &r); + r.out.result = _dfs_SetInfo(p); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_SetInfo, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -238,6 +262,9 @@ static BOOL api_dfs_GetInfo(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_GetInfo, &r); + ZERO_STRUCT(r.out); r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info)); if (r.out.info == NULL) { @@ -247,6 +274,9 @@ static BOOL api_dfs_GetInfo(pipes_struct *p) r.out.result = _dfs_GetInfo(p, r.in.path, r.in.server, r.in.share, r.in.level, r.out.info); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_GetInfo, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -295,11 +325,17 @@ static BOOL api_dfs_Enum(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_Enum, &r); + ZERO_STRUCT(r.out); r.out.info = r.in.info; r.out.total = r.in.total; r.out.result = _dfs_Enum(p, r.in.level, r.in.bufsize, r.in.info, r.in.unknown, r.in.total); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_Enum, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -348,8 +384,14 @@ static BOOL api_dfs_Rename(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_Rename, &r); + r.out.result = _dfs_Rename(p); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_Rename, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -398,8 +440,14 @@ static BOOL api_dfs_Move(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_Move, &r); + r.out.result = _dfs_Move(p); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_Move, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -448,8 +496,14 @@ static BOOL api_dfs_ManagerGetConfigInfo(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, &r); + r.out.result = _dfs_ManagerGetConfigInfo(p); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_ManagerGetConfigInfo, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -498,8 +552,14 @@ static BOOL api_dfs_ManagerSendSiteInfo(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, &r); + r.out.result = _dfs_ManagerSendSiteInfo(p); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_ManagerSendSiteInfo, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -548,8 +608,14 @@ static BOOL api_dfs_AddFtRoot(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, &r); + r.out.result = _dfs_AddFtRoot(p); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_AddFtRoot, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -598,8 +664,14 @@ static BOOL api_dfs_RemoveFtRoot(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, &r); + r.out.result = _dfs_RemoveFtRoot(p); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_RemoveFtRoot, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -648,8 +720,14 @@ static BOOL api_dfs_AddStdRoot(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, &r); + r.out.result = _dfs_AddStdRoot(p); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_AddStdRoot, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -698,8 +776,14 @@ static BOOL api_dfs_RemoveStdRoot(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, &r); + r.out.result = _dfs_RemoveStdRoot(p); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_RemoveStdRoot, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -748,8 +832,14 @@ static BOOL api_dfs_ManagerInitialize(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, &r); + r.out.result = _dfs_ManagerInitialize(p); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_ManagerInitialize, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -798,8 +888,14 @@ static BOOL api_dfs_AddStdRootForced(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, &r); + r.out.result = _dfs_AddStdRootForced(p); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_AddStdRootForced, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -848,8 +944,14 @@ static BOOL api_dfs_GetDcAddress(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, &r); + r.out.result = _dfs_GetDcAddress(p); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_GetDcAddress, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -898,8 +1000,14 @@ static BOOL api_dfs_SetDcAddress(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, &r); + r.out.result = _dfs_SetDcAddress(p); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_SetDcAddress, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -948,8 +1056,14 @@ static BOOL api_dfs_FlushFtTable(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, &r); + r.out.result = _dfs_FlushFtTable(p); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_FlushFtTable, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -998,8 +1112,14 @@ static BOOL api_dfs_Add2(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_Add2, &r); + r.out.result = _dfs_Add2(p); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_Add2, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -1048,8 +1168,14 @@ static BOOL api_dfs_Remove2(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_Remove2, &r); + r.out.result = _dfs_Remove2(p); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_Remove2, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -1098,11 +1224,17 @@ static BOOL api_dfs_EnumEx(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_EnumEx, &r); + ZERO_STRUCT(r.out); r.out.info = r.in.info; r.out.total = r.in.total; r.out.result = _dfs_EnumEx(p, r.in.name, r.in.level, r.in.bufsize, r.in.info, r.in.total); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_EnumEx, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); @@ -1151,8 +1283,14 @@ static BOOL api_dfs_SetInfo2(pipes_struct *p) return False; } + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_SetInfo2, &r); + r.out.result = _dfs_SetInfo2(p); + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_SetInfo2, &r); + push = ndr_push_init_ctx(mem_ctx); if (push == NULL) { talloc_free(mem_ctx); |