Log message reformatting.
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Mon, 5 Mar 2012 00:09:35 +0000 (21:09 -0300)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Mon, 5 Mar 2012 00:09:35 +0000 (21:09 -0300)
src/icmp/icmppinger.cpp
src/tcp/tcppinger.cpp

index 07c8415..2493afe 100644 (file)
@@ -70,8 +70,8 @@ IcmpPinger::IcmpPinger(
 {
     if ( !NetInterface.bind() )
     {
-        GlobalLogger.error() << "Error: could not bind the socket "
-            << "with the local interface. " << ::strerror( errno )  << endl;
+        GlobalLogger.error() << "Error: could not bind the socket with the local interface. "
+                << ::strerror( errno )  << endl;
     }
 
     // Create "unique" identifier
@@ -164,8 +164,7 @@ void IcmpPinger::send_echo_request( const IcmpPacketItem icmp_packet )
     }
     catch ( const exception &ex )
     {
-        GlobalLogger.error() << "Error: fail sending ping data. "
-                << ex.what() << endl;
+        GlobalLogger.error() << "Error: fail sending ping data. " << ex.what() << endl;
     }
 
     schedule_timeout_echo_reply();
@@ -246,8 +245,7 @@ void IcmpPinger::handle_receive_icmp_packet( const size_t &bytes_transferred )
         IcmpPacketItem icmp_packet = IcmpPacketFactory::create_icmp_packet( Protocol, is );
         if ( !icmp_packet )
         {
-            GlobalLogger.notice() << "Warning: ignoring broken ICMP packet"
-                << endl;
+            GlobalLogger.notice() << "Warning: ignoring broken ICMP packet" << endl;
             return;
         }
 
index f8dc685..c0da7ef 100644 (file)
@@ -88,8 +88,8 @@ TcpPinger::TcpPinger(
 {
     if ( !NetInterface.bind() )
     {
-        GlobalLogger.error() << "Error: could not bind the socket "
-                "with the local interface. " << ::strerror( errno )  << endl;
+        GlobalLogger.error() << "Error: could not bind the socket with the local interface. "
+                << ::strerror( errno )  << endl;
     }
 
     // Create "unique" identifier
@@ -216,8 +216,7 @@ void TcpPinger::send_ack_request( const TcpSegmentItem tcp_segment )
     }
     catch ( const exception &ex )
     {
-        GlobalLogger.error() << "Error: fail sending ping data. "
-                << ex.what() << endl;
+        GlobalLogger.error() << "Error: fail sending ping data. " << ex.what() << endl;
     }
 
     // Tell how long to wait for the reply