From 8602449caa5a055bd5f033e3792d0a59a0b41bfa Mon Sep 17 00:00:00 2001
From: mickeyl <mickeyl>
Date: Sun, 02 May 2004 19:17:27 +0000
Subject: dump takes less space now

NOTE: I think dump really doesn't belong here
---
diff --git a/libopie2/opienet/opcap.cpp b/libopie2/opienet/opcap.cpp
index 8ec4f47..8184f21 100644
--- a/libopie2/opienet/opcap.cpp
+++ b/libopie2/opienet/opcap.cpp
@@ -148,9 +148,7 @@ QString OPacket::dump( int bpl ) const
     static int index = 0;
     index++;
     int len = _hdr.caplen;
-    QString str;
-    str.sprintf( "\n<----- Packet #%04d Len = 0x%X (%d) ----->\n\n", index, len, len );
-    str.append( "0000: " );
+    QString str( "000:" );
     QString tmp;
     QString bytes;
     QString chars;
@@ -167,7 +165,7 @@ QString OPacket::dump( int bpl ) const
             str.append( ' ' );
             str.append( chars );
             str.append( '\n' );
-            tmp.sprintf( "%04X: ", i+1 ); str.append( tmp );
+            tmp.sprintf( "%03X:", i+1 ); str.append( tmp );
             bytes = "";
             chars = "";
         }
--
cgit v0.9.0.2