[Positioner] InputUDPSocket: s/cout/cerr/

This commit is contained in:
Matteo Cypriani 2012-05-31 19:47:28 +02:00
parent 569cdefd94
commit 573cb2f256
1 changed files with 4 additions and 4 deletions

View File

@ -126,7 +126,7 @@ bool InputUDPSocket::fill_current_request()
// Display request's info
if (Configuration::is_configured("verbose"))
cout
cerr
<< "*** Request received from the aggregator ***"
<< "\n\tType: " << static_cast<uint_fast16_t>(request.type)
<< "\n\tNumber of packets: " << request.nb_packets
@ -146,7 +146,7 @@ bool InputUDPSocket::fill_current_request()
! Stock::mobile_exists(mac_mobile))
{
if (Configuration::is_configured("verbose"))
cout << "Dropping request from unknown mobile "
cerr << "Dropping request from unknown mobile "
<< mac_mobile << ".\n" ;
return false ;
}
@ -199,7 +199,7 @@ bool InputUDPSocket::fill_current_request()
ss_t ss = request_info.ss_dbm - 256 ;
if (Configuration::is_configured("verbose"))
cout
cerr
<< "\t* Packet received from the aggregator:"
<< "\n\t\tPacket number: " << packet_id
<< "\n\t\tAP MAC: " << mac_ap
@ -212,7 +212,7 @@ bool InputUDPSocket::fill_current_request()
! Stock::ap_exists(mac_ap))
{
if (Configuration::is_configured("verbose"))
cout << "Dropping packet from unknown AP "
cerr << "Dropping packet from unknown AP "
<< mac_ap << ".\n" ;
continue ;
}