diff options
author | Lutz Bichler <Lutz.Bichler@bmw.de> | 2014-08-19 16:38:07 +0200 |
---|---|---|
committer | Lutz Bichler <Lutz.Bichler@bmw.de> | 2014-08-19 16:38:07 +0200 |
commit | 1e2d46afa93dd83625745b4413b83b94102f178c (patch) | |
tree | 1c116d37537a334992761c9fdf00f2216a7daa60 | |
parent | ff08e5d092641ca99ef9e9bf372adb743bab26b2 (diff) | |
download | vSomeIP-1e2d46afa93dd83625745b4413b83b94102f178c.tar.gz |
Improved formatting of log messages.
-rw-r--r-- | implementation/routing/src/routing_manager_impl.cpp | 7 | ||||
-rw-r--r-- | implementation/routing/src/routing_manager_stub.cpp | 6 |
2 files changed, 7 insertions, 6 deletions
diff --git a/implementation/routing/src/routing_manager_impl.cpp b/implementation/routing/src/routing_manager_impl.cpp index 36ad00a..a0ba824 100644 --- a/implementation/routing/src/routing_manager_impl.cpp +++ b/implementation/routing/src/routing_manager_impl.cpp @@ -549,12 +549,11 @@ void routing_manager_impl::on_message(service_t _service, instance_t _instance, } if (its_client == host_->get_client() + || its_client == VSOMEIP_ROUTING_CLIENT || utility::is_notification(_data)) { deliver_message(_data, _size, _instance); - } else if (its_client != VSOMEIP_ROUTING_CLIENT) { - send(its_client, _data, _size, _instance, true, false); } else { - VSOMEIP_ERROR<< "Cannot determine target application!"; + send(its_client, _data, _size, _instance, true, false); } } @@ -1194,7 +1193,7 @@ void routing_manager_impl::init_event_routing_info() { for (auto k : j.second) { VSOMEIP_DEBUG<< "Eventgroup [" << std::hex << std::setw(4) << std::setfill('0') << i.first << "." << j.first << "." << k.first - << "] (MC: "; + << "]"; for (auto l : k.second->get_events()) { VSOMEIP_DEBUG << " Event " << std::hex << std::setw(4) << std::setfill('0') << l->get_event(); diff --git a/implementation/routing/src/routing_manager_stub.cpp b/implementation/routing/src/routing_manager_stub.cpp index 380cb22..ccb4b0c 100644 --- a/implementation/routing/src/routing_manager_stub.cpp +++ b/implementation/routing/src/routing_manager_stub.cpp @@ -108,13 +108,15 @@ void routing_manager_stub::on_message(const byte_t *_data, length_t _size, routing_info_[its_client].first = 0; broadcast_routing_info(); VSOMEIP_DEBUG << "Application/Client " << its_client + << std::hex << std::setw(4) << std::setfill('0') << " got registered!"; break; case VSOMEIP_DEREGISTER_APPLICATION: on_deregister_application(its_client); - VSOMEIP_DEBUG << "Application/Client " << its_client - << " got deregistered!"; + VSOMEIP_DEBUG << "Application/Client " + << std::hex << std::setw(4) << std::setfill('0') + << its_client << " got deregistered!"; break; case VSOMEIP_PONG: |