From 1242430e2f5d39de4c6062d68411285b8be7ba2e Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Wed, 8 Aug 2007 11:20:09 +0200 Subject: [PATCH] improve print output --- samples/main-packet-tag.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/main-packet-tag.cc b/samples/main-packet-tag.cc index 3bd1ad2a7..a23a8a904 100644 --- a/samples/main-packet-tag.cc +++ b/samples/main-packet-tag.cc @@ -70,7 +70,7 @@ void MyTag::Print (std::ostream &os) const { // print the content of this tag for Packet::PrintTags - os << (uint32_t)m_simpleValue; + os << "MyTag=0x" << std::hex << (uint32_t)m_simpleValue << std::dec; } uint32_t MyTag::GetSerializedSize (void) const @@ -130,6 +130,7 @@ int main (int argc, char *argv[]) NS_ASSERT (tagCopy.GetSimpleValue () == tag.GetSimpleValue ()); aCopy.PrintTags (std::cout); + std::cout << std::endl; return 0; }