Changeset 515 for trunk/lib/format_erf.c


Ignore:
Timestamp:
11/24/05 12:00:55 (7 years ago)
Author:
dlawson
Message:

updated Changelog
fixed anonymous definition of packet status struct, to improve use.
updated format_erf paths to use sizeof(libtrace_packet_status_t)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/format_erf.c

    r514 r515  
    674674                        // Need to skip this packet as it is a message packet 
    675675                        tracefifo_out_update(libtrace->fifo, packet->size); 
    676                         tracefifo_ack_update(libtrace->fifo, packet->size + (sizeof(uint32_t) * 2)); 
     676                        tracefifo_ack_update(libtrace->fifo, packet->size +  
     677                                        sizeof(uint32_t) +  
     678                                        sizeof(libtrace_packet_status_t)); 
    677679                        continue; 
    678680                } 
     
    691693                tracefifo_out_update(libtrace->fifo,packet->size); 
    692694 
    693                 tracefifo_ack_update(libtrace->fifo,packet->size + (sizeof(uint32_t) * 2)); 
     695                tracefifo_ack_update(libtrace->fifo,packet->size +  
     696                                sizeof(uint32_t) +  
     697                                sizeof(libtrace_packet_status_t)); 
    694698 
    695699                //packet->size = numbytes; 
Note: See TracChangeset for help on using the changeset viewer.