Ticket #1972: trace-packfile.patch

File trace-packfile.patch, 1.3 KB (added by doughera, 3 years ago)
  • src/packfile/api.c

     int
    diff --git a/src/packfile/api.c b/src/packfile/api.c
    index e38ec7d..f3d9d7f 100644
    a b  
    927927    ASSERT_ARGS(do_sub_pragmas) 
    928928    PackFile_ConstTable * const ct = self->const_table; 
    929929    opcode_t i; 
     930#if TRACE_PACKFILE 
     931    PackFile        * const pf  = self; 
     932#endif 
    930933 
    931934    TRACE_PRINTF(("PackFile: do_sub_pragmas (action=%d)\n", action)); 
    932935 
     
    11001103                INTVAL pf_options) 
    11011104{ 
    11021105    ASSERT_ARGS(PackFile_Header_unpack) 
     1106#if TRACE_PACKFILE 
     1107    PackFile        * const pf  = self; 
     1108#endif 
    11031109 
    11041110    /* Verify that the packfile isn't too small to contain a proper header */ 
    11051111    if (packed_size < PACKFILE_HEADER_BYTES) { 
     
    11151121    PackFile_Header_validate(interp, self, pf_options); 
    11161122 
    11171123    /* Extract the header's UUID. */ 
    1118     PackFile_Header_read_uuid(interp, self, packed, packed_size) 
     1124    PackFile_Header_read_uuid(interp, self, packed, packed_size); 
    11191125 
    11201126    /* Describe what was read for debugging. */ 
    11211127    TRACE_PRINTF(("PackFile_Header_unpack: Wordsize %d.\n", self->wordsize));