DPRINTF: Improve some dprintf messages.
[gem5.git] / src / dev / etherdump.hh
index 18a5d2c44ceedf7937ee8db7be4d5ba54274c2ab..cc8fa9151262a11aec534e7385756d50221472da 100644 (file)
 #define __ETHERDUMP_H__
 
 #include <fstream>
+
 #include "dev/etherpkt.hh"
-#include "sim/sim_object.hh"
 #include "params/EtherDump.hh"
+#include "sim/sim_object.hh"
 
 /*
  * Simple object for creating a simple pcap style packet trace
@@ -47,7 +48,7 @@ class EtherDump : public SimObject
 {
   private:
     std::ostream *stream;
-    const int maxlen;
+    const unsigned maxlen;
     void dumpPacket(EthPacketPtr &packet);
     void init();