summaryrefslogtreecommitdiff
path: root/src/components/protocol_handler
diff options
context:
space:
mode:
authorElisey Zamakhov <EZamakhov@luxoft.com>2015-03-17 11:30:06 +0300
committerElisey Zamakhov <EZamakhov@luxoft.com>2015-03-18 14:05:33 +0300
commitf36fde09f8dbe3e1fd6f494a52f39ef5186669c1 (patch)
treea3d42905b9f5ef02f8424f68a1de065bdf273b27 /src/components/protocol_handler
parent62df5c903fce753b681c15c00138fe7ab8cfa200 (diff)
downloadsdl_core-f36fde09f8dbe3e1fd6f494a52f39ef5186669c1.tar.gz
Valgrind warning fixs
Add additional logs
Diffstat (limited to 'src/components/protocol_handler')
-rw-r--r--src/components/protocol_handler/src/incoming_data_handler.cc2
-rw-r--r--src/components/protocol_handler/src/protocol_handler_impl.cc2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/components/protocol_handler/src/incoming_data_handler.cc b/src/components/protocol_handler/src/incoming_data_handler.cc
index 151a44f336..45dc4babff 100644
--- a/src/components/protocol_handler/src/incoming_data_handler.cc
+++ b/src/components/protocol_handler/src/incoming_data_handler.cc
@@ -102,12 +102,14 @@ std::list<ProtocolFramePtr> IncomingDataHandler::ProcessData(
void IncomingDataHandler::AddConnection(
const transport_manager::ConnectionUID connection_id) {
+ LOG4CXX_AUTO_TRACE(logger_);
// Add empty list of session to new connection
connections_data_[connection_id] = ConnectionsDataMap::mapped_type();
}
void IncomingDataHandler::RemoveConnection(
const transport_manager::ConnectionUID connection_id) {
+ LOG4CXX_AUTO_TRACE(logger_);
connections_data_.erase(connection_id);
}
diff --git a/src/components/protocol_handler/src/protocol_handler_impl.cc b/src/components/protocol_handler/src/protocol_handler_impl.cc
index 7ff673e294..9366d1b05f 100644
--- a/src/components/protocol_handler/src/protocol_handler_impl.cc
+++ b/src/components/protocol_handler/src/protocol_handler_impl.cc
@@ -1359,7 +1359,7 @@ std::string ConvertPacketDataToString(const uint8_t *data,
break;
}
}
- return is_printable_array ? std::string(text) : std::string("is raw data");
+ return is_printable_array ? std::string(text, data_size) : std::string("is raw data");
}
uint8_t SupportedSDLProtocolVersion() {