diff options
author | Bill Meier <wmeier@newsguy.com> | 2007-09-12 14:50:27 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2007-09-12 14:50:27 +0000 |
commit | f891c2cc6a68b05ffdc166dd184b43eca14d4c38 (patch) | |
tree | f2ce71fdc04e9d3aa38ec65a2cb06b9790d8f328 /text2pcap.c | |
parent | 8b247815f3d3854febb448c003b285a9ec596e47 (diff) | |
download | wireshark-f891c2cc6a68b05ffdc166dd184b43eca14d4c38.tar.gz |
Output err msg if strptime fails converting input time;
svn path=/trunk/; revision=22852
Diffstat (limited to 'text2pcap.c')
-rw-r--r-- | text2pcap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/text2pcap.c b/text2pcap.c index b844b611e1..ef5cac70f6 100644 --- a/text2pcap.c +++ b/text2pcap.c @@ -754,8 +754,11 @@ parse_preamble (void) if (subsecs != NULL) { /* Get the long time from the tm structure */ ts_sec = (gint32)mktime( &timecode ); - } else + } else { + fprintf (stderr, "Failed to parse '%s' using time format '%s'; using 00:00:00 (midnight) as default\n", + packet_preamble, ts_fmt); ts_sec = -1; /* we failed to parse it */ + } /* This will ensure incorrectly parsed dates get set to zero */ if ( -1 == ts_sec ) |