diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-12-16 22:08:03 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-12-17 06:08:31 +0000 |
commit | b56d4d01876a378530922e4de446b8434f75d871 (patch) | |
tree | b839b5485506cdf3c146a2db2baac9b63b380a2c /capinfos.c | |
parent | 625ba02b69c4254af20d63cfc274afd2f262639a (diff) |
Clean up the "unknown per-packet encapsulation" message.
Report the file name, report the frame number as unsigned (which it is),
and make it look more like other error messages.
Change-Id: Ia5281da1c94d55c745da8a8b20dafdb74dd13f92
Reviewed-on: https://code.wireshark.org/review/5793
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'capinfos.c')
-rw-r--r-- | capinfos.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/capinfos.c b/capinfos.c index fa5c1d1439..dda4b57a07 100644 --- a/capinfos.c +++ b/capinfos.c @@ -884,7 +884,8 @@ process_cap_file(wtap *wth, const char *filename) if ((phdr->pkt_encap > 0) && (phdr->pkt_encap < WTAP_NUM_ENCAP_TYPES)) { cf_info.encap_counts[phdr->pkt_encap] += 1; } else { - fprintf(stderr, "capinfos: Unknown per-packet encapsulation: %d [frame number: %d]\n", phdr->pkt_encap, packet); + fprintf(stderr, "capinfos: Unknown per-packet encapsulation %d in frame %u of file \"%s\"\n", + phdr->pkt_encap, packet, filename); } } } |