It might be more understandable to print unsupported
pcap magic number in hexadecimal format.

Signed-off-by: Vadim Kochan <vadi...@gmail.com>
---
 pcap_io.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
        }
 }
 
-- 
2.6.3

-- 
You received this message because you are subscribed to the Google Groups 
"netsniff-ng" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to netsniff-ng+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to