summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--parameter/Element.cpp13
-rw-r--r--parameter/Element.h2
-rw-r--r--parameter/ParameterMgr.cpp5
3 files changed, 16 insertions, 4 deletions
diff --git a/parameter/Element.cpp b/parameter/Element.cpp
index 06c3df2..a96c683 100644
--- a/parameter/Element.cpp
+++ b/parameter/Element.cpp
@@ -69,6 +69,19 @@ void CElement::log_warning(const string& strMessage, ...) const
doLog(true, acBuffer);
}
+// Log each element of the string list
+void CElement::log_table(bool bIsWarning, const list<string> lstrMessage) const
+{
+ list<string>::const_iterator iterator(lstrMessage.begin());
+ list<string>::const_iterator end(lstrMessage.end());
+
+ while (iterator != end) {
+ // Log current list element
+ doLog(bIsWarning, iterator->c_str());
+ ++iterator;
+ }
+}
+
void CElement::doLog(bool bIsWarning, const string& strLog) const
{
assert(_pParent);
diff --git a/parameter/Element.h b/parameter/Element.h
index d870145..b381898 100644
--- a/parameter/Element.h
+++ b/parameter/Element.h
@@ -27,6 +27,7 @@
#include <string>
#include <vector>
#include <stdint.h>
+#include <list>
#include "XmlSink.h"
#include "XmlSource.h"
@@ -47,6 +48,7 @@ public:
// Logging
void log_info(const string& strMessage, ...) const;
void log_warning(const string& strMessage, ...) const;
+ void log_table(bool bIsWarning, const list<string> lstrMessage) const;
// Description
void setDescription(const string& strDescription);
diff --git a/parameter/ParameterMgr.cpp b/parameter/ParameterMgr.cpp
index 90d7884..b5b9683 100644
--- a/parameter/ParameterMgr.cpp
+++ b/parameter/ParameterMgr.cpp
@@ -358,10 +358,7 @@ bool CParameterMgr::load(string& strError)
list<string> lstrSelectionCriteron;
selectionCriteria->listSelectionCriteria(lstrSelectionCriteron, true, false);
- string strSelectionCriteron;
- CUtility::concatenate(lstrSelectionCriteron, strSelectionCriteron);
-
- log_info("%s", strSelectionCriteron.c_str());
+ log_table(false, lstrSelectionCriteron);
}
// At initialization, check subsystems that need resync