Cosmetics: '\n' was replaced with std::endl, Camel case for attributes
authorKirill Andreev <andreev@iitp.ru>
Mon, 24 Aug 2009 18:05:31 +0400
changeset 5157 ace422ad12df
parent 5156 5b499f25655a
child 5158 0baed7827260
Cosmetics: '\n' was replaced with std::endl, Camel case for attributes
src/devices/mesh/dot11s/dot11s-mac-header.cc
src/devices/mesh/dot11s/hwmp-protocol-mac.cc
src/devices/mesh/dot11s/hwmp-protocol.cc
src/devices/mesh/dot11s/ie-dot11s-beacon-timing.cc
src/devices/mesh/dot11s/ie-dot11s-configuration.cc
src/devices/mesh/dot11s/ie-dot11s-peer-management.cc
src/devices/mesh/dot11s/ie-dot11s-perr.cc
src/devices/mesh/dot11s/ie-dot11s-prep.cc
src/devices/mesh/dot11s/ie-dot11s-preq.cc
src/devices/mesh/dot11s/ie-dot11s-rann.cc
src/devices/mesh/dot11s/peer-link-frame.cc
src/devices/mesh/dot11s/peer-management-protocol-mac.cc
src/devices/mesh/dot11s/peer-management-protocol.cc
src/devices/mesh/flame/flame-header.cc
src/devices/mesh/flame/flame-protocol-mac.cc
src/devices/mesh/flame/flame-protocol.cc
src/devices/mesh/flame/flame-rtable.cc
src/devices/mesh/wifi-information-element.cc
--- a/src/devices/mesh/dot11s/dot11s-mac-header.cc	Fri Aug 21 23:33:52 2009 +0400
+++ b/src/devices/mesh/dot11s/dot11s-mac-header.cc	Mon Aug 24 18:05:31 2009 +0400
@@ -164,8 +164,9 @@
 void
 MeshHeader::Print (std::ostream &os) const
 {
-  os << "flags = " << (uint16_t) m_meshFlags << "\nttl = " << (uint16_t) m_meshTtl << "\nseqno = "
-      << m_meshSeqno << "\naddr4 = " << m_addr4 << "\naddr5 = " << m_addr5 << "\naddr6 = " << m_addr6;
+  os << "flags = " << (uint16_t) m_meshFlags << std::endl << "ttl = " << (uint16_t) m_meshTtl 
+    << std::endl << "seqno = " << m_meshSeqno << std::endl<< "addr4 = " << m_addr4 << std::endl
+    << "addr5 = " << m_addr5 << std::endl << "addr6 = " << m_addr6 << std::endl;
 }
 bool
 operator== (const MeshHeader & a, const MeshHeader & b)
--- a/src/devices/mesh/dot11s/hwmp-protocol-mac.cc	Fri Aug 21 23:33:52 2009 +0400
+++ b/src/devices/mesh/dot11s/hwmp-protocol-mac.cc	Mon Aug 24 18:05:31 2009 +0400
@@ -448,10 +448,10 @@
 void
 HwmpProtocolMac::Report (std::ostream & os) const
 {
-  os << "<HwmpProtocolMac\n"
-    "address =\"" << m_parent->GetAddress () << "\">\n";
+  os << "<HwmpProtocolMac" << std::endl <<
+    "address =\"" << m_parent->GetAddress () << "\">" << std::endl;
   m_stats.Print (os);
-  os << "</HwmpProtocolMac>\n";
+  os << "</HwmpProtocolMac>" << std::endl;
 }
 void
 HwmpProtocolMac::ResetStats ()
--- a/src/devices/mesh/dot11s/hwmp-protocol.cc	Fri Aug 21 23:33:52 2009 +0400
+++ b/src/devices/mesh/dot11s/hwmp-protocol.cc	Mon Aug 24 18:05:31 2009 +0400
@@ -53,7 +53,7 @@
                         &HwmpProtocol::m_randomStart),
                     MakeTimeChecker ()
                    )
-    .AddAttribute ( "maxQueueSize",
+    .AddAttribute ( "MaxQueueSize",
                     "Maximum number of packets we can store when resolving route",
                     UintegerValue (255),
                     MakeUintegerAccessor (
@@ -115,42 +115,42 @@
                         &HwmpProtocol::m_dot11MeshHWMPrannInterval),
                     MakeTimeChecker ()
                   )
-    .AddAttribute ( "maxTtl",
+    .AddAttribute ( "MaxTtl",
                     "Initial value of Time To Live field",
                     UintegerValue (32),
                     MakeUintegerAccessor (
                         &HwmpProtocol::m_maxTtl),
                     MakeUintegerChecker<uint8_t> (2)
                   )
-    .AddAttribute ( "unicastPerrThreshold",
+    .AddAttribute ( "UnicastPerrThreshold",
                     "Maximum number of PERR receivers, when we send a PERR as a chain of unicasts",
                     UintegerValue (32),
                     MakeUintegerAccessor (
                         &HwmpProtocol::m_unicastPerrThreshold),
                     MakeUintegerChecker<uint8_t> (1)
                     )
-    .AddAttribute ( "unicastPreqThreshold",
+    .AddAttribute ( "UnicastPreqThreshold",
                     "Maximum number of PREQ receivers, when we send a PREQ as a chain of unicasts",
                     UintegerValue (1),
                     MakeUintegerAccessor (
                         &HwmpProtocol::m_unicastPreqThreshold),
                     MakeUintegerChecker<uint8_t> (1)
                     )
-    .AddAttribute ( "unicastDataThreshold",
+    .AddAttribute ( "UnicastDataThreshold",
                     "Maximum number ofbroadcast receivers, when we send a broadcast as a chain of unicasts",
                     UintegerValue (1),
                     MakeUintegerAccessor (
                         &HwmpProtocol::m_unicastDataThreshold),
                     MakeUintegerChecker<uint8_t> (1)
                   )
-    .AddAttribute ( "doFlag",
+    .AddAttribute ( "DoFlag",
                     "Destination only HWMP flag",
                     BooleanValue (false),
                     MakeBooleanAccessor (
                         &HwmpProtocol::m_doFlag),
                     MakeBooleanChecker ()
                   )
-    .AddAttribute ( "rfFlag",
+    .AddAttribute ( "RfFlag",
                     "Reply and forward flag",
                     BooleanValue (true),
                     MakeBooleanAccessor (
@@ -1101,7 +1101,7 @@
     "totalDropped=\"" << totalDropped << "\" "
     "initiatedPreq=\"" << initiatedPreq << "\" "
     "initiatedPrep=\"" << initiatedPrep << "\" "
-    "initiatedPerr=\"" << initiatedPerr << "\"\n";
+    "initiatedPerr=\"" << initiatedPerr << "\"" << std::endl;
 }
 void
 HwmpProtocol::Report (std::ostream & os) const
@@ -1129,7 +1129,7 @@
     {
       plugin->second->Report (os);
     }
-  os << "</Hwmp>\n";
+  os << "</Hwmp>" << std::endl;
 }
 void
 HwmpProtocol::ResetStats ()
--- a/src/devices/mesh/dot11s/ie-dot11s-beacon-timing.cc	Fri Aug 21 23:33:52 2009 +0400
+++ b/src/devices/mesh/dot11s/ie-dot11s-beacon-timing.cc	Mon Aug 24 18:05:31 2009 +0400
@@ -148,11 +148,11 @@
 void
 IeBeaconTiming::PrintInformation (std::ostream& os) const
 {
-  os << "Number of units: " << (uint16_t) m_numOfUnits << "\n";
+  os << "Number of units: " << (uint16_t) m_numOfUnits << std::endl;
   for (NeighboursTimingUnitsList::const_iterator j = m_neighbours.begin (); j != m_neighbours.end (); j++)
     {
       os << "AID=" << (uint16_t) (*j)->GetAid () << ", Last beacon was at " << (*j)->GetLastBeacon ()
-          << ", with beacon interval " << (*j)->GetBeaconInterval () << "\n";
+          << ", with beacon interval " << (*j)->GetBeaconInterval () << std::endl;
     }
 }
 void
--- a/src/devices/mesh/dot11s/ie-dot11s-configuration.cc	Fri Aug 21 23:33:52 2009 +0400
+++ b/src/devices/mesh/dot11s/ie-dot11s-configuration.cc	Mon Aug 24 18:05:31 2009 +0400
@@ -156,12 +156,12 @@
 IeConfiguration::PrintInformation (std::ostream& os) const
 {
   os << "Number of neighbors:               = " << (uint16_t) m_neighbors
-      << "\nActive Path Selection Protocol ID: = " << (uint32_t) m_APSPId
-      << "\nActive Path Selection Metric ID:   = " << (uint32_t) m_APSMId
-      << "\nCongestion Control Mode ID:        = " << (uint32_t) m_CCMId
-      << "\nSynchronize protocol ID:           = " << (uint32_t) m_SPId
-      << "\nAuthentication protocol ID:        = " << (uint32_t) m_APId
-      << "\nCapabilities:                      = " << m_meshCap.GetUint16 () << "\n";
+      << std::endl << "Active Path Selection Protocol ID: = " << (uint32_t) m_APSPId
+      << std::endl << "Active Path Selection Metric ID:   = " << (uint32_t) m_APSMId
+      << std::endl << "Congestion Control Mode ID:        = " << (uint32_t) m_CCMId
+      << std::endl << "Synchronize protocol ID:           = " << (uint32_t) m_SPId
+      << std::endl << "Authentication protocol ID:        = " << (uint32_t) m_APId
+      << std::endl << "Capabilities:                      = " << m_meshCap.GetUint16 () << std::endl;
 }
 void
 IeConfiguration::SetRouting (dot11sPathSelectionProtocol routingId)
--- a/src/devices/mesh/dot11s/ie-dot11s-peer-management.cc	Fri Aug 21 23:33:52 2009 +0400
+++ b/src/devices/mesh/dot11s/ie-dot11s-peer-management.cc	Mon Aug 24 18:05:31 2009 +0400
@@ -149,11 +149,11 @@
 IePeerManagement::PrintInformation (std::ostream& os) const
 {
 
-  os << " Subtype:      = " << (uint16_t) m_subtype << "\n";
-  os << " Length:       = " << (uint16_t) m_length << "\n";
-  os << " LocalLinkId:  = " << m_localLinkId << "\n";
-  os << " PeerLinkId:   = " << m_peerLinkId << "\n";
-  os << " ReasonCode:   = " << m_reasonCode << "\n";
+  os << " Subtype:      = " << (uint16_t) m_subtype << std::endl;
+  os << " Length:       = " << (uint16_t) m_length << std::endl;
+  os << " LocalLinkId:  = " << m_localLinkId << std::endl;
+  os << " PeerLinkId:   = " << m_peerLinkId << std::endl;
+  os << " ReasonCode:   = " << m_reasonCode << std::endl;
 }
 bool
 operator== (const IePeerManagement & a, const IePeerManagement & b)
--- a/src/devices/mesh/dot11s/ie-dot11s-perr.cc	Fri Aug 21 23:33:52 2009 +0400
+++ b/src/devices/mesh/dot11s/ie-dot11s-perr.cc	Mon Aug 24 18:05:31 2009 +0400
@@ -45,7 +45,7 @@
       os << "Failed destination address: = " << m_addressUnits[j].destination << ", sequence number = "
           << m_addressUnits[j].seqnum;
     }
-  os << "\n";
+  os << std::endl;
 }
 uint8_t
 IePerr::GetNumOfDest ()
--- a/src/devices/mesh/dot11s/ie-dot11s-prep.cc	Fri Aug 21 23:33:52 2009 +0400
+++ b/src/devices/mesh/dot11s/ie-dot11s-prep.cc	Mon Aug 24 18:05:31 2009 +0400
@@ -190,10 +190,10 @@
 void
 IePrep::PrintInformation (std::ostream& os) const
 {
-  os << "Flags:        = " << m_flags << "\nHopcount:     = " << m_hopcount << "\nTTL:          = " << m_ttl
-      << "\nDestination:  = " << m_destinationAddress << "\nDest. seqnum: = " << m_destSeqNumber
-      << "\nLifetime:     = " << m_lifetime << "\nMetric:       = " << m_metric << "\nOriginator:   = "
-      << m_originatorAddress << "\nOrig. seqnum: = " << m_originatorSeqNumber << "\n";
+  os << "Flags:        = " << m_flags << std::endl << "Hopcount:     = " << m_hopcount << std::endl << "TTL:          = " << m_ttl
+      << std::endl<< "Destination:  = " << m_destinationAddress << std::endl << "Dest. seqnum: = " << m_destSeqNumber
+      << std::endl << "Lifetime:     = " << m_lifetime << std::endl<< "Metric:       = " << m_metric << std::endl << "Originator:   = "
+      << m_originatorAddress << std::endl << "Orig. seqnum: = " << m_originatorSeqNumber << std::endl;
 }
 bool
 operator== (const IePrep & a, const IePrep & b)
--- a/src/devices/mesh/dot11s/ie-dot11s-preq.cc	Fri Aug 21 23:33:52 2009 +0400
+++ b/src/devices/mesh/dot11s/ie-dot11s-preq.cc	Mon Aug 24 18:05:31 2009 +0400
@@ -323,17 +323,17 @@
 void
 IePreq::PrintInformation (std::ostream &os) const
 {
-  os << " originator address  = " << m_originatorAddress << "\n";
-  os << " TTL                 = " << (uint16_t) m_ttl << "\n";
-  os << " hop count           = " << (uint16_t) m_hopCount << "\n";
-  os << " metric              = " << m_metric << "\n";
-  os << " seqno               = " << m_originatorSeqNumber << "\n";
-  os << " lifetime            = " << m_lifetime << "\n";
-  os << " preq ID             = " << m_preqId << "\n";
-  os << " Destinations are:\n";
+  os << " originator address  = " << m_originatorAddress << "std::endl";
+  os << " TTL                 = " << (uint16_t) m_ttl << "std::endl";
+  os << " hop count           = " << (uint16_t) m_hopCount << "std::endl";
+  os << " metric              = " << m_metric << "std::endl";
+  os << " seqno               = " << m_originatorSeqNumber << "std::endl";
+  os << " lifetime            = " << m_lifetime << "std::endl";
+  os << " preq ID             = " << m_preqId << "std::endl";
+  os << " Destinations are:std::endl";
   for (int j = 0; j < m_destCount; j++)
     {
-      os << "    " << m_destinations[j]->GetDestinationAddress () << "\n";
+      os << "    " << m_destinations[j]->GetDestinationAddress () << "std::endl";
     }
 }
 std::vector<Ptr<DestinationAddressUnit> >
--- a/src/devices/mesh/dot11s/ie-dot11s-rann.cc	Fri Aug 21 23:33:52 2009 +0400
+++ b/src/devices/mesh/dot11s/ie-dot11s-rann.cc	Mon Aug 24 18:05:31 2009 +0400
@@ -153,12 +153,12 @@
 void
 IeRann::PrintInformation (std::ostream &os) const
 {
-  os << "  flags              = " << (int) m_flags << "\n";
-  os << "  hop count          = " << (int) m_hopcount << "\n";
-  os << "  TTL                = " << (int) m_ttl << "\n";
-  os << "  originator address = " << m_originatorAddress << "\n";
-  os << "  dst seq. number    = " << m_destSeqNumber << "\n";
-  os << "  metric             = " << m_metric << "\n";
+  os << "  flags              = " << (int) m_flags << "std::endl";
+  os << "  hop count          = " << (int) m_hopcount << "std::endl";
+  os << "  TTL                = " << (int) m_ttl << "std::endl";
+  os << "  originator address = " << m_originatorAddress << "std::endl";
+  os << "  dst seq. number    = " << m_destSeqNumber << "std::endl";
+  os << "  metric             = " << m_metric << "std::endl";
 }
 
 bool
--- a/src/devices/mesh/dot11s/peer-link-frame.cc	Fri Aug 21 23:33:52 2009 +0400
+++ b/src/devices/mesh/dot11s/peer-link-frame.cc	Mon Aug 24 18:05:31 2009 +0400
@@ -97,9 +97,9 @@
 void
 PeerLinkFrameStart::Print (std::ostream &os) const
 {
-  os << "subtype = " << (uint16_t) m_subtype << "\ncapability = " << m_capability << "\naid = "
-      << (uint16_t) m_aid << "\nrates = " << m_rates << "\nmeshId = " << m_meshId << "\nconfiguration = "
-      << m_config << "\nreason code = " << m_reasonCode;
+  os << "subtype = " << (uint16_t) m_subtype << "std::endlcapability = " << m_capability << "std::endlaid = "
+      << (uint16_t) m_aid << "std::endlrates = " << m_rates << "std::endlmeshId = " << m_meshId << "std::endlconfiguration = "
+      << m_config << "std::endlreason code = " << m_reasonCode;
 }
 uint32_t
 PeerLinkFrameStart::GetSerializedSize () const
--- a/src/devices/mesh/dot11s/peer-management-protocol-mac.cc	Fri Aug 21 23:33:52 2009 +0400
+++ b/src/devices/mesh/dot11s/peer-management-protocol-mac.cc	Mon Aug 24 18:05:31 2009 +0400
@@ -288,27 +288,27 @@
 PeerManagementProtocolMac::Statistics::Print (std::ostream & os) const
 {
   os << "<Statistics "
-    "txOpen=\"" << txOpen << "\"\n"
-    "txConfirm=\"" << txConfirm << "\"\n"
-    "txClose=\"" << txClose << "\"\n"
-    "rxOpen=\"" << rxOpen << "\"\n"
-    "rxConfirm=\"" << rxConfirm << "\"\n"
-    "rxClose=\"" << rxClose << "\"\n"
-    "dropped=\"" << dropped << "\"\n"
-    "brokenMgt=\"" << brokenMgt << "\"\n"
-    "txMgt=\"" << txMgt << "\"\n"
-    "txMgtBytes=\"" << txMgtBytes << "\"\n"
-    "rxMgt=\"" << rxMgt << "\"\n"
-    "rxMgtBytes=\"" << rxMgtBytes << "\"\n"
-    "beaconShift=\"" << beaconShift << "\"/>\n";
+    "txOpen=\"" << txOpen << "\"" << std::endl <<
+    "txConfirm=\"" << txConfirm << "\"" << std::endl <<
+    "txClose=\"" << txClose << "\"" << std::endl <<
+    "rxOpen=\"" << rxOpen << "\"" << std::endl <<
+    "rxConfirm=\"" << rxConfirm << "\"" << std::endl <<
+    "rxClose=\"" << rxClose << "\"" << std::endl <<
+    "dropped=\"" << dropped << "\"" << std::endl <<
+    "brokenMgt=\"" << brokenMgt << "\"" << std::endl <<
+    "txMgt=\"" << txMgt << "\"" << std::endl <<
+    "txMgtBytes=\"" << txMgtBytes << "\"" << std::endl <<
+    "rxMgt=\"" << rxMgt << "\"" << std::endl <<
+    "rxMgtBytes=\"" << rxMgtBytes << "\"" << std::endl <<
+    "beaconShift=\"" << beaconShift << "\"/>" << std::endl;
 }
 void
 PeerManagementProtocolMac::Report (std::ostream & os) const
 {
   os << "<PeerManagementProtocolMac "
-    "address=\"" << m_parent->GetAddress () << "\">\n";
+    "address=\"" << m_parent->GetAddress () << "\">" << std::endl;
   m_stats.Print (os);
-  os << "</PeerManagementProtocolMac>\n";
+  os << "</PeerManagementProtocolMac>" << std::endl;
 }
 void
 PeerManagementProtocolMac::ResetStats ()
--- a/src/devices/mesh/dot11s/peer-management-protocol.cc	Fri Aug 21 23:33:52 2009 +0400
+++ b/src/devices/mesh/dot11s/peer-management-protocol.cc	Mon Aug 24 18:05:31 2009 +0400
@@ -547,7 +547,7 @@
 void
 PeerManagementProtocol::Report (std::ostream & os) const
 {
-  os << "<PeerManagementProtocol>\n";
+  os << "<PeerManagementProtocol>" << std::endl;
   m_stats.Print (os);
   for (PeerManagementProtocolMacMap::const_iterator plugins = m_plugins.begin (); plugins != m_plugins.end (); plugins++)
     {
@@ -561,7 +561,7 @@
           (*i)->Report (os);
         }
     }
-  os << "</PeerManagementProtocol>\n";
+  os << "</PeerManagementProtocol>" << std::endl;
 }
 void
 PeerManagementProtocol::ResetStats ()
--- a/src/devices/mesh/flame/flame-header.cc	Fri Aug 21 23:33:52 2009 +0400
+++ b/src/devices/mesh/flame/flame-header.cc	Mon Aug 24 18:05:31 2009 +0400
@@ -49,8 +49,8 @@
 void
 FlameHeader::Print (std::ostream &os) const
 {
-  os << "Cost             = " << (uint16_t) m_cost << "\nSequence number  = " << m_seqno
-      << "\nOrig Destination = " << m_origDst << "\nOrig Source      = " << m_origSrc << "\n";
+  os << "Cost             = " << (uint16_t) m_cost << std::endl << "Sequence number  = " << m_seqno
+      << std::endl << "Orig Destination = " << m_origDst << std::endl << "Orig Source      = " << m_origSrc << std::endl;
 }
 uint32_t
 FlameHeader::GetSerializedSize (void) const
--- a/src/devices/mesh/flame/flame-protocol-mac.cc	Fri Aug 21 23:33:52 2009 +0400
+++ b/src/devices/mesh/flame/flame-protocol-mac.cc	Mon Aug 24 18:05:31 2009 +0400
@@ -107,15 +107,15 @@
     "txBytes=\"" << txBytes << "\" "
     "rxUnicast=\"" << rxUnicast << "\" "
     "rxBroadcast=\"" << rxBroadcast << "\" "
-    "rxBytes=\"" << rxBytes << "\"/>\n";
+    "rxBytes=\"" << rxBytes << "\"/>" << std::endl;
 }
 void
 FlameProtocolMac::Report (std::ostream & os) const
 {
-  os << "<FlameProtocolMac\n"
-    "address =\"" << m_parent->GetAddress () << "\">\n";
+  os << "<FlameProtocolMac" << std::endl << 
+    "address =\"" << m_parent->GetAddress () << "\">" << std::endl;
   m_stats.Print (os);
-  os << "</FlameProtocolMac>\n";
+  os << "</FlameProtocolMac>" << std::endl;
 
 }
 void
--- a/src/devices/mesh/flame/flame-protocol.cc	Fri Aug 21 23:33:52 2009 +0400
+++ b/src/devices/mesh/flame/flame-protocol.cc	Mon Aug 24 18:05:31 2009 +0400
@@ -345,21 +345,21 @@
     "txBroadcast=\"" << txBroadcast << "\" "
     "txBytes=\"" << txBytes << "\" "
     "droppedTtl=\"" << droppedTtl << "\" "
-    "totalDropped=\"" << totalDropped << "\"/>\n";
+    "totalDropped=\"" << totalDropped << "\"/>" << std::endl;
 }
 void
 FlameProtocol::Report (std::ostream & os) const
 {
   os << "<Flame "
-    "address=\"" << m_address << "\"\n"
-    "broadcastInterval=\"" << m_broadcastInterval.GetSeconds () << "\"\n"
-    "maxCost=\"" << (uint16_t) m_maxCost << "\">\n";
+    "address=\"" << m_address << "\"" << std::endl << 
+    "broadcastInterval=\"" << m_broadcastInterval.GetSeconds () << "\"" << std::endl << 
+    "maxCost=\"" << (uint16_t) m_maxCost << "\">" << std::endl;
   m_stats.Print (os);
   for (FlamePluginMap::const_iterator plugin = m_interfaces.begin (); plugin != m_interfaces.end (); plugin++)
     {
       plugin->second->Report (os);
     }
-  os << "</Flame>\n";
+  os << "</Flame>" << std::endl;
 }
 void
 FlameProtocol::ResetStats ()
--- a/src/devices/mesh/flame/flame-rtable.cc	Fri Aug 21 23:33:52 2009 +0400
+++ b/src/devices/mesh/flame/flame-rtable.cc	Mon Aug 24 18:05:31 2009 +0400
@@ -36,7 +36,7 @@
   static TypeId tid =
       TypeId ("ns3::flame::FlameRtable")
       .SetParent<Object> () .AddConstructor<FlameRtable> ()
-      .AddAttribute ( "lifetime",
+      .AddAttribute ( "Lifetime",
                       "The lifetime of the routing enrty",
                       TimeValue (Seconds (120)), MakeTimeAccessor (
                           &FlameRtable::m_lifetime),
--- a/src/devices/mesh/wifi-information-element.cc	Fri Aug 21 23:33:52 2009 +0400
+++ b/src/devices/mesh/wifi-information-element.cc	Mon Aug 24 18:05:31 2009 +0400
@@ -66,9 +66,9 @@
 void
 WifiInformationElement::Print (std::ostream &os) const
 {
-  os << "\n<information_element id=" << ElementId () << ">\n";
+  os << std::endl << "<information_element id=" << ElementId () << ">" << std::endl;
   PrintInformation (os);
-  os << "</information_element>\n";
+  os << "</information_element>" << std::endl;
 }
 bool
 operator< (WifiInformationElement const & a, WifiInformationElement const & b)