improve pretty-printing output.

This commit is contained in:
Mathieu Lacage
2008-03-19 11:10:37 -07:00
parent 1518a1dbd1
commit cabfd83031
7 changed files with 11 additions and 19 deletions

View File

@@ -120,7 +120,7 @@ EthernetHeader::Print (std::ostream &os) const
// ethernet, right ?
if (m_enPreambleSfd)
{
os << " preamble/sfd=" << m_preambleSfd << ",";
os << "preamble/sfd=" << m_preambleSfd << ",";
}
os << " length/type=0x" << std::hex << m_lengthType << std::dec

View File

@@ -103,7 +103,7 @@ EthernetTrailer::GetInstanceTypeId (void) const
void
EthernetTrailer::Print (std::ostream &os) const
{
os << " fcs=" << m_fcs;
os << "fcs=" << m_fcs;
}
uint32_t
EthernetTrailer::GetSerializedSize (void) const

View File

@@ -64,11 +64,10 @@ LlcSnapHeader::GetInstanceTypeId (void) const
void
LlcSnapHeader::Print (std::ostream &os) const
{
os << "(type 0x";
os << "type 0x";
os.setf (std::ios::hex, std::ios::basefield);
os << m_etherType;
os.setf (std::ios::dec, std::ios::basefield);
os << ")";
}
void