From 3629936c927edb75d2529ff82395f735375d4650 Mon Sep 17 00:00:00 2001 From: Kevin Rocard Date: Mon, 4 Feb 2013 14:57:47 +0100 Subject: PFW: Correct truncated criterion log BZ: 85746 Create a log fonction to log a string table. Use it to call the log function for each criterion. Context: When the PFW starts, it logs the criteria, their states and possible values. All criterion logs where concatenate in a string and logged. But if there is a lot of criteria, the 512 chars long log buffer might be overfload and the log is truncated. Change-Id: I72c89b25de9314b714763b3ac71a7d0cb9698910 Signed-off-by: Kevin Rocard Reviewed-on: http://android.intel.com:8080/90089 Reviewed-by: Gonzalve, Sebastien Tested-by: Dixon, CharlesX Reviewed-by: buildbot Tested-by: buildbot --- parameter/ParameterMgr.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'parameter/ParameterMgr.cpp') 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 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 -- cgit v1.1