Robert Shearman : rpcrt4: Add some more traces and make the stack offsets easier to read in the stubless interpreter .

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 9 16:18:51 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: f953cc406a367448df7c8aa27b4c3734b5c8d4a9
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=f953cc406a367448df7c8aa27b4c3734b5c8d4a9

Author: Robert Shearman <rob at codeweavers.com>
Date:   Wed Aug  9 18:17:05 2006 +0100

rpcrt4: Add some more traces and make the stack offsets easier to read in the stubless interpreter.

---

 dlls/rpcrt4/ndr_stubless.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/dlls/rpcrt4/ndr_stubless.c b/dlls/rpcrt4/ndr_stubless.c
index 3b1c071..4125379 100644
--- a/dlls/rpcrt4/ndr_stubless.c
+++ b/dlls/rpcrt4/ndr_stubless.c
@@ -573,9 +573,10 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_ST
     {
         stack_size = pProcHeader->stack_size;
         procedure_number = pProcHeader->proc_num;
-        TRACE("proc num: %d\n", procedure_number);
         pFormat += sizeof(NDR_PROC_HEADER);
     }
+    TRACE("stack size: 0x%x\n", stack_size);
+    TRACE("proc num: %d\n", procedure_number);
 
     /* create the full pointer translation tables, if requested */
     if (pProcHeader->Oi_flags & RPC_FC_PROC_OIF_FULLPTR)
@@ -856,7 +857,7 @@ #endif
                         break;
 
                     TRACE("param[%d]: old format\n", i);
-                    TRACE("\tparam_direction: %x\n", pParam->param_direction);
+                    TRACE("\tparam_direction: 0x%x\n", pParam->param_direction);
                     TRACE("\tstack_offset: 0x%x\n", current_stack_offset_adjusted);
                     TRACE("\tmemory addr (before): %p\n", pArg);
 
@@ -1320,7 +1321,7 @@ #endif
 
                     TRACE("param[%d]: new format\n", i);
                     TRACE("\tparam_attributes:"); dump_RPC_FC_PROC_PF(pParam->param_attributes); TRACE("\n");
-                    TRACE("\tstack_offset: %x\n", current_stack_offset);
+                    TRACE("\tstack_offset: 0x%x\n", current_stack_offset);
                     TRACE("\tmemory addr (before): %p -> %p\n", pArg, *(unsigned char **)pArg);
 
                     if (pParam->param_attributes.ServerAllocSize)
@@ -1453,7 +1454,7 @@ #endif
 
                     TRACE("param[%d]: old format\n", i);
                     TRACE("\tparam_direction: 0x%x\n", pParam->param_direction);
-                    TRACE("\tstack_offset: %x\n", current_stack_offset_adjusted);
+                    TRACE("\tstack_offset: 0x%x\n", current_stack_offset_adjusted);
 
                     if (pParam->param_direction == RPC_FC_IN_PARAM_BASETYPE ||
                         pParam->param_direction == RPC_FC_RETURN_PARAM_BASETYPE)




More information about the wine-cvs mailing list