DPRINTF: Improve some dprintf messages.
[gem5.git] / src / dev / etherdump.hh
index f3080f34147aeda2ee5013db199b1534049823d1..cc8fa9151262a11aec534e7385756d50221472da 100644 (file)
@@ -36,7 +36,9 @@
 #define __ETHERDUMP_H__
 
 #include <fstream>
+
 #include "dev/etherpkt.hh"
+#include "params/EtherDump.hh"
 #include "sim/sim_object.hh"
 
 /*
 class EtherDump : public SimObject
 {
   private:
-    std::ofstream stream;
-    const int maxlen;
+    std::ostream *stream;
+    const unsigned maxlen;
     void dumpPacket(EthPacketPtr &packet);
     void init();
 
-    Tick curtime;
-
   public:
-    EtherDump(const std::string &name, const std::string &file, int max);
+    typedef EtherDumpParams Params;
+    EtherDump(const Params *p);
 
     inline void dump(EthPacketPtr &pkt) { dumpPacket(pkt); }
 };