aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
authorlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2008-03-25 21:07:52 +0000
committerlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2008-03-25 21:07:52 +0000
commit0fb91e645d34ae4f6dbb7524a246215e34d80bf7 (patch)
tree7a15bb7cea01a6947032e35e87ffa44336f88f6a /editcap.c
parenta021c2478e8ca62a9e9f388adab6e47120560892 (diff)
Long time ago, I added these to troubleshoot a problem a user was seeing but I could not reproduce, as I had no feedback I forgot about removing these prints.
This must be copied over to the release branch. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24727 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/editcap.c b/editcap.c
index 12732423c3..56a33ae4fd 100644
--- a/editcap.c
+++ b/editcap.c
@@ -191,14 +191,8 @@ selected(int recno)
static gboolean
check_timestamp(wtap *wth)
{
- static int i = 0;
struct wtap_pkthdr* pkthdr = wtap_phdr(wth);
- if (!((i++)%250))
- printf("== %d starttime=%lu stoptime=%lu ts=%lu\n",i,
- (unsigned long)starttime,
- (unsigned long)stoptime,
- (unsigned long)pkthdr->ts.secs);
return ( pkthdr->ts.secs >= starttime ) && ( pkthdr->ts.secs <= stoptime );
}
@@ -546,7 +540,6 @@ main(int argc, char *argv[])
starttm.tm_isdst = -1;
starttime = mktime(&starttm);
- printf("=START=> given='%s' stoptime=%lu\n",optarg,(unsigned long)starttime);
break;
}
@@ -563,7 +556,6 @@ main(int argc, char *argv[])
check_startstop = TRUE;
stoptm.tm_isdst = -1;
stoptime = mktime(&stoptm);
- printf("=STOP=> given='%s' stoptime=%lu\n",optarg,(unsigned long)stoptime);
break;
}
}
@@ -590,14 +582,12 @@ main(int argc, char *argv[])
stoptm.tm_mon = 11;
stoptime = mktime(&stoptm);
- printf("=STOP=NEVER=> stoptime=%lu\n",(unsigned long)stoptime);
}
if (starttime > stoptime) {
fprintf(stderr, "editcap: start time is after the stop time\n");
exit(1);
}
- printf("==> stoptime=%lu stoptime=%lu\n",(unsigned long)starttime,(unsigned long)stoptime);
wth = wtap_open_offline(argv[optind], &err, &err_info, FALSE);