From 2ad6a5634584158598d08ca9f6c5e21c594ddfb0 Mon Sep 17 00:00:00 2001 From: SeungWon Lee Date: Wed, 17 Apr 2013 16:08:37 +0900 Subject: [PATCH] Fix privacy information log. Change-Id: I47f39f829f797f79f55c3bcf8aca326309627030 Signed-off-by: SeungWon Lee --- src/app/FApp_AppSettingImpl.cpp | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/src/app/FApp_AppSettingImpl.cpp b/src/app/FApp_AppSettingImpl.cpp index 949a767..4649cc2 100644 --- a/src/app/FApp_AppSettingImpl.cpp +++ b/src/app/FApp_AppSettingImpl.cpp @@ -469,8 +469,7 @@ _AppSettingImpl::GetValue(const Tizen::Base::String& id, bool& value) const const _SettingItem* pItem = dynamic_cast(pObject); SysTryReturnResult(NID_APP, pItem != null, E_TYPE_MISMATCH, "Type mismatch for instance of id."); const Boolean* pBoolean = dynamic_cast(pItem->GetValue()); - SysTryReturnResult(NID_APP, pBoolean != null, E_TYPE_MISMATCH, - "Type mismatch between requested type bool and object type of %ls.", id.GetPointer()); + SysTryReturnResult(NID_APP, pBoolean != null, E_TYPE_MISMATCH, "Type mismatch between requested type bool and object type."); value = pBoolean->ToBool(); return E_SUCCESS; @@ -484,8 +483,7 @@ _AppSettingImpl::GetValue(const Tizen::Base::String& id, int& value) const const _SettingItem* pItem = dynamic_cast(pObject); SysTryReturnResult(NID_APP, pItem != null, E_TYPE_MISMATCH, "Type mismatch for instance of id."); const Integer* pInteger = dynamic_cast(pItem->GetValue()); - SysTryReturnResult(NID_APP, pInteger != null, E_TYPE_MISMATCH, - "Type mismatch between requested type int and object type of %ls.", id.GetPointer()); + SysTryReturnResult(NID_APP, pInteger != null, E_TYPE_MISMATCH, "Type mismatch between requested type int and object type."); value = pInteger->ToInt(); return E_SUCCESS; @@ -499,8 +497,7 @@ _AppSettingImpl::GetValue(const Tizen::Base::String& id, Tizen::Base::String& va const _SettingItem* pItem = dynamic_cast(pObject); SysTryReturnResult(NID_APP, pItem != null, E_TYPE_MISMATCH, "Type mismatch for instance of id."); const String* pString = dynamic_cast(pItem->GetValue()); - SysTryReturnResult(NID_APP, pString != null, E_TYPE_MISMATCH, - "Type mismatch between requested type String and object type of %ls.", id.GetPointer()); + SysTryReturnResult(NID_APP, pString != null, E_TYPE_MISMATCH, "Type mismatch between requested type String and object type."); value = *pString; return E_SUCCESS; @@ -514,8 +511,7 @@ _AppSettingImpl::SetValue(const Tizen::Base::String& id, bool value, bool save) _SettingItem* pItem = dynamic_cast<_SettingItem*>(pObject); SysTryReturnResult(NID_APP, pItem != null, E_TYPE_MISMATCH, "Type mismatch for instance of id."); Boolean* pBoolean = dynamic_cast(pItem->GetValue()); - SysTryReturnResult(NID_APP, pBoolean != null, E_TYPE_MISMATCH, - "Type mismatch between requested type bool and object type of %ls.", id.GetPointer()); + SysTryReturnResult(NID_APP, pBoolean != null, E_TYPE_MISMATCH, "Type mismatch between requested type bool and object type."); *pBoolean = value; static const String strTrue(L"true"); @@ -545,8 +541,7 @@ _AppSettingImpl::SetValue(const Tizen::Base::String& id, int value, bool save) _SettingItem* pItem = dynamic_cast<_SettingItem*>(pObject); SysTryReturnResult(NID_APP, pItem != null, E_TYPE_MISMATCH, "Type mismatch for instance of id."); Integer* pInteger = dynamic_cast(pItem->GetValue()); - SysTryReturnResult(NID_APP, pInteger != null, E_TYPE_MISMATCH, - "Type mismatch between requested type int and object type of %ls.", id.GetPointer()); + SysTryReturnResult(NID_APP, pInteger != null, E_TYPE_MISMATCH, "Type mismatch between requested type int and object type."); SysTryReturnResult(NID_APP, (pItem->GetMin() <= value), E_OUT_OF_RANGE, "value(%d) is less than minimum range(%d).", value, pItem->GetMin()); @@ -577,8 +572,7 @@ _AppSettingImpl::SetValue(const Tizen::Base::String& id, const Tizen::Base::Stri _SettingItem* pItem = dynamic_cast<_SettingItem*>(pObject); SysTryReturnResult(NID_APP, pItem != null, E_TYPE_MISMATCH, "Type mismatch for instance of id."); String* pString = dynamic_cast(pItem->GetValue()); - SysTryReturnResult(NID_APP, pString != null, E_TYPE_MISMATCH, - "Type mismatch between requested type String and object type of %ls.", id.GetPointer()); + SysTryReturnResult(NID_APP, pString != null, E_TYPE_MISMATCH, "Type mismatch between requested type String and object type."); SysTryReturnResult(NID_APP, pItem->GetMin() <= value.GetLength(), E_OUT_OF_RANGE, "value length(%d) less than minimum length(%d).", value.GetLength(), pItem->GetMin()); @@ -1115,11 +1109,11 @@ _AppSettingImpl::SetValueFromDBusData(const char* pId, const char* pValue) SetValue(strId, strValue, false); return; } - SysLog(NID_APP, "Failed determin value type for id=%s", pId); + SysSecureLog(NID_APP, "Failed determine value type for id= %s", pId); } else { - SysLog(NID_APP, "Failed find value for id=%s", pId); + SysSecureLog(NID_APP, "Failed find value for id= %s", pId); } } -- 2.7.4