diff options
author | Ido Barnea <ibarnea@cisco.com> | 2016-05-11 10:47:16 +0300 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2016-05-18 19:23:23 +0300 |
commit | 03d70c4218be1932e4d69dc52bf24106f85dcafb (patch) | |
tree | 86402d59d7465cb6e98ee40a0a1ff82be7ff1485 /src/common | |
parent | cb13e66205717a8fcf69185ba350adab3438ffa0 (diff) |
unit tests + simulator work
Diffstat (limited to 'src/common')
-rwxr-xr-x | src/common/captureFile.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/captureFile.cpp b/src/common/captureFile.cpp index 4c50bcb2..b3035e8a 100755 --- a/src/common/captureFile.cpp +++ b/src/common/captureFile.cpp @@ -121,13 +121,13 @@ bool CCapPktRaw::Compare(CCapPktRaw * obj,int dump,double dsec){ if (pkt_len != obj->pkt_len) { if ( dump ){ - printf(" ERROR len is not eq \n"); + printf(" ERROR: len is not eq. First len is %d, second is %d \n", pkt_len, obj->pkt_len); } return (false); } if ( getInterface() != obj->getInterface() ){ - printf(" ERROR original packet from if=%d and cur packet from if=%d \n",getInterface(),obj->getInterface()); + printf(" ERROR: original packet from if=%d and cur packet from if=%d \n",getInterface(),obj->getInterface()); return (false); } @@ -135,7 +135,7 @@ bool CCapPktRaw::Compare(CCapPktRaw * obj,int dump,double dsec){ CPktNsecTimeStamp t2(obj->time_sec,obj->time_nsec); if ( t1.diff(t2) > dsec ){ if ( dump ){ - printf(" ERROR diff of 1 msec in time \n"); + printf(" ERROR: diff of 1 msec in time \n"); } return (false); } @@ -144,7 +144,7 @@ bool CCapPktRaw::Compare(CCapPktRaw * obj,int dump,double dsec){ return (true); }else{ if ( dump ){ - fprintf(stdout," ERROR buffer not the same \n"); + fprintf(stdout," ERROR: buffers not the same \n"); fprintf(stdout," B1 \n"); fprintf(stdout," ---------------\n"); utl_DumpBuffer(stdout,raw,pkt_len,0); |