aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-15 00:51:38 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-03-16 17:21:57 +0100
commit56c22348d3af944b68bc7395553b9f8b1a817ba6 (patch)
treef741f5f2383178e5e68505e3e67c5eec18e86b3b
parent4e2d038c42d6995d69239455ec4fbad9931fcfd5 (diff)
Uniformization between get_name() method of signals.
can_signal_t and active_diagnostic_message return name with prefix using this method. If you need without it then use get_generic_name. Change-Id: I6b153eb20214049c10619d39fcc65c8641a9e32f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--src/diagnostic/active-diagnostic-request.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/diagnostic/active-diagnostic-request.cpp b/src/diagnostic/active-diagnostic-request.cpp
index 762cb61..9d0f6aa 100644
--- a/src/diagnostic/active-diagnostic-request.cpp
+++ b/src/diagnostic/active-diagnostic-request.cpp
@@ -76,9 +76,9 @@ DiagnosticRequestHandle* active_diagnostic_request_t::get_handle()
return handle_;
}
-std::string& active_diagnostic_request_t::get_name()
+const std::string active_diagnostic_request_t::get_name() const
{
- return name_;
+ return active_diagnostic_request_t::prefix_ + "." + name_;
}
std::string& active_diagnostic_request_t::get_prefix()