Changeset a566d9c3


Ignore:
Timestamp:
01/09/12 10:58:44 (9 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
cc27c86
Parents:
cb64286
Message:
  • Add some useful debugging output if test-dir fails
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test-dir.c

    rd5a27e8 ra566d9c3  
    5353
    5454#include "libtrace.h"
     55#include "libpacketdump.h"
    5556
    5657void iferr(libtrace_t *trace)
     
    107108        int level = 0;
    108109        int expected = 100;
     110        int err;
    109111        libtrace_t *trace;
    110112        libtrace_out_t *outtrace;
     
    175177        packet=trace_create_packet();
    176178        count=0;
    177         int err;
    178179        while((err=trace_read_packet(trace,packet))>0) {
    179180                ++count;
     
    181182                        ^ (trace_get_direction(packet)==TRACE_DIR_INCOMING))) {
    182183
     184                        trace_dump_packet(packet);
    183185                        printf("Direction tagging broken\n");
    184186                        error=1;
Note: See TracChangeset for help on using the changeset viewer.