From d4ac41dcb596fed7c9a03968590ad4936b837417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Gaffie?= Date: Thu, 6 Apr 2017 11:51:07 +0200 Subject: [PATCH] Fix dumpElement for ArrayParameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use correct blackboard index while calling dumpElement (logValue for ArrayParameter class) to fix the eratic behavior of dumpElement for ArrayParameters. Change-Id: I255af6969283f91cdd2efd810c7d453f3765a16d Tracked-On: Signed-off-by: François Gaffie --- parameter/ArrayParameter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parameter/ArrayParameter.cpp b/parameter/ArrayParameter.cpp index 83ffe0462..91ea44879 100644 --- a/parameter/ArrayParameter.cpp +++ b/parameter/ArrayParameter.cpp @@ -171,7 +171,7 @@ bool CArrayParameter::access(std::vector &astrValues, bool bSet, string CArrayParameter::logValue(CParameterAccessContext &context) const { // Dump values - return getValues(0, context); + return getValues(getOffset() - context.getBaseOffset(), context); } // Used for simulation and virtual subsystems