summaryrefslogtreecommitdiff
path: root/pcap_io.h
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2016-05-16 20:32:46 +0300
committerTobias Klauser <tklauser@distanz.ch>2016-06-22 09:25:07 +0200
commit4bf0e7f3cf5d376747b3888a19c676655ff3ce39 (patch)
tree318d600f63b41c1010c85a310dcda14fa96b6733 /pcap_io.h
parent6f3886dcf06337eeb2a1f8cf72305778f7a95381 (diff)
netsniff-ng: pcap_io: Print unsupported magic number
It might be more understandable to print unsupported pcap magic number in hexadecimal format. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'pcap_io.h')
-rw-r--r--pcap_io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap_io.h b/pcap_io.h
index 5056e58..4e41362 100644
--- a/pcap_io.h
+++ b/pcap_io.h
@@ -300,7 +300,7 @@ static inline void pcap_check_magic(uint32_t magic)
break;
default:
- panic("This file has not a valid pcap header\n");
+ panic("This file has an unsupported pcap magic number(0x%x)\n", magic);
}
}