Fix diagnostic message name mismatch at decoding.
authorRomain Forlot <romain.forlot@iot.bzh>
Wed, 15 Mar 2017 23:54:34 +0000 (00:54 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Thu, 16 Mar 2017 16:21:57 +0000 (17:21 +0100)
Retrieve adr name prefixed will add uneeded prefix as it is already present.
At build time of a Diagnostic request from a diagnostic message, this prefix
is added so adr name is already correct.
*adr: active diagnostic request

Change-Id: Ie5c364bf47a28c80290021651941cd37fa26321a
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
src/diagnostic/active-diagnostic-request.cpp

index 4f28866..a21f730 100644 (file)
@@ -89,7 +89,7 @@ DiagnosticRequestHandle* active_diagnostic_request_t::get_handle()
 
 const std::string active_diagnostic_request_t::get_name() const
 {
-       return active_diagnostic_request_t::prefix_ + "." + name_;
+       return name_;
 }
 
 std::string& active_diagnostic_request_t::get_prefix()