summaryrefslogtreecommitdiff
path: root/pkgmgr_account/src/account.cpp
diff options
context:
space:
mode:
authorYoonchan Choi <yc81.choi@samsung.com>2013-04-17 12:15:10 +0900
committerYoonchan Choi <yc81.choi@samsung.com>2013-04-17 12:15:10 +0900
commit0bec9b76e995372aa86b41e1305ab4752a30956e (patch)
tree7d84746b6db35deae7c5f8c0416f07998b796df0 /pkgmgr_account/src/account.cpp
parent4a487f12f94429bc4c6e835302f92e2d9131142a (diff)
downloadsocial-0bec9b76e995372aa86b41e1305ab4752a30956e.tar.gz
social-0bec9b76e995372aa86b41e1305ab4752a30956e.tar.bz2
social-0bec9b76e995372aa86b41e1305ab4752a30956e.zip
Replace SysLog with SysSecureLog
Change-Id: I78859ea2ae94c1afe634c2a8e269519d0fc3a02d Signed-off-by: Yoonchan Choi <yc81.choi@samsung.com>
Diffstat (limited to 'pkgmgr_account/src/account.cpp')
-rw-r--r--pkgmgr_account/src/account.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/pkgmgr_account/src/account.cpp b/pkgmgr_account/src/account.cpp
index e919d2a..6271c9b 100644
--- a/pkgmgr_account/src/account.cpp
+++ b/pkgmgr_account/src/account.cpp
@@ -87,7 +87,7 @@ int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr docPtr, const char* packageId)
xmlNodePtr curPtr = xmlFirstElementChild(xmlDocGetRootElement(docPtr));
_SysTryCatch(NID_SCL, curPtr != null, ret = -EINVAL, "Failed to get the element.");
- SysLog(NID_SCL, "Node: %s", curPtr->name);
+ SysSecureLog(NID_SCL, "Node: %s", curPtr->name);
// Get the children nodes
curPtr = curPtr->xmlChildrenNode;
@@ -95,7 +95,7 @@ int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr docPtr, const char* packageId)
while(curPtr != null)
{
- SysLog(NID_SCL, "Node: %s", curPtr->name);
+ SysSecureLog(NID_SCL, "Node: %s", curPtr->name);
// Node: <account-provider>
if ((!xmlStrcmp(curPtr->name, _NODE_ACCOUNT_PROVIDER)))
@@ -104,7 +104,7 @@ int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr docPtr, const char* packageId)
xmlChar* pAppIdId = xmlGetProp(curPtr, _ATTRIBUTE_APP_ID);
_SysTryCatch(NID_SCL, pAppIdId != null, ret = -EINVAL, "Failed to get the attribute.");
- SysLog(NID_SCL, "Attribute: appid - %s", pAppIdId);
+ SysSecureLog(NID_SCL, "Attribute: appid - %s", pAppIdId);
ret = account_type_set_app_id(accountTypeHandle, reinterpret_cast<char*> (pAppIdId));
_SysTryCatch(NID_SCL, ret == ACCOUNT_ERROR_NONE, ret = -1, "Failed to set the app ID.");
@@ -112,7 +112,7 @@ int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr docPtr, const char* packageId)
xmlChar* pMultipleAccountsSupport = xmlGetProp(curPtr, _ATTRIBUTE_MULTIPLE_ACCOUNTS_SUPPORT);
_SysTryCatch(NID_SCL, pMultipleAccountsSupport != null, ret = -EINVAL, "Failed to get the attribute.");
- SysLog(NID_SCL, "Attribute: multiple-accounts-support - %s", pMultipleAccountsSupport);
+ SysSecureLog(NID_SCL, "Attribute: multiple-accounts-support - %s", pMultipleAccountsSupport);
if ((!xmlStrcmp(pMultipleAccountsSupport, _VALUE_TRUE)))
{
ret = account_type_set_multiple_account_support(accountTypeHandle, true);
@@ -130,7 +130,7 @@ int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr docPtr, const char* packageId)
while (curPtr != NULL)
{
- SysLog(NID_SCL, "Node: %s", curPtr->name);
+ SysSecureLog(NID_SCL, "Node: %s", curPtr->name);
// Node: <icon>
if ((!xmlStrcmp(curPtr->name, _NODE_ICON)))
@@ -139,14 +139,14 @@ int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr docPtr, const char* packageId)
xmlChar* pSection = xmlGetProp(curPtr, _ATTRIBUTE_SECTION);
_SysTryCatch(NID_SCL, pSection != null, ret = -EINVAL, "Failed to get the attribute.");
- SysLog(NID_SCL, "Attribute: section - %s", pSection);
+ SysSecureLog(NID_SCL, "Attribute: section - %s", pSection);
if ((!xmlStrcmp(pSection, _VALUE_ACCOUNT)))
{
xmlChar* pAccountIcon = xmlNodeListGetString(docPtr, curPtr->xmlChildrenNode, 1);
_SysTryCatch(NID_SCL, pAccountIcon != null, ret = -EINVAL, "Failed to get the value.");
- SysLog(NID_SCL, "Node: icon - %s", pAccountIcon);
+ SysSecureLog(NID_SCL, "Node: icon - %s", pAccountIcon);
ret = account_type_set_icon_path(accountTypeHandle, reinterpret_cast<char*> (pAccountIcon));
_SysTryCatch(NID_SCL, ret == ACCOUNT_ERROR_NONE, ret = -1, "Failed to set the icon path.");
}
@@ -155,7 +155,7 @@ int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr docPtr, const char* packageId)
xmlChar* pAccountSmallIcon = xmlNodeListGetString(docPtr, curPtr->xmlChildrenNode, 1);
_SysTryCatch(NID_SCL, pAccountSmallIcon != null, ret = -EINVAL, "Failed to get the value.");
- SysLog(NID_SCL, "Node: icon (small) - %s", pAccountSmallIcon);
+ SysSecureLog(NID_SCL, "Node: icon (small) - %s", pAccountSmallIcon);
ret = account_type_set_small_icon_path(accountTypeHandle, reinterpret_cast<char*> (pAccountSmallIcon));
_SysTryCatch(NID_SCL, ret == ACCOUNT_ERROR_NONE, ret = -1, "Failed to set the small icon path.");
}
@@ -163,13 +163,13 @@ int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr docPtr, const char* packageId)
// Node: <label>
else if ((!xmlStrcmp(curPtr->name, _NODE_LABEL)))
{
- SysLog(NID_SCL, "Node: %s", curPtr->name);
+ SysSecureLog(NID_SCL, "Node: %s", curPtr->name);
// Attribute: xml:lang
xmlChar* pLang = xmlNodeGetLang(curPtr);
if (pLang != null)
{
- SysLog(NID_SCL, "Attribute: xml:lang - %s", pLang);
+ SysSecureLog(NID_SCL, "Attribute: xml:lang - %s", pLang);
String lang(reinterpret_cast<char*> (pLang));
@@ -187,12 +187,12 @@ int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr docPtr, const char* packageId)
std::unique_ptr<ByteBuffer> pConvertedLangBuf(StringUtil::StringToUtf8N(convertedLang));
_SysTryCatch(NID_SCL, pConvertedLangBuf != null, ret = -1, "Failed to convert String to Utf8N.");
- SysLog(NID_SCL, "Attribute: converted lang - %s", pConvertedLangBuf->GetPointer());
+ SysSecureLog(NID_SCL, "Attribute: converted lang - %s", pConvertedLangBuf->GetPointer());
xmlChar* pLabel = xmlNodeListGetString(docPtr, curPtr->xmlChildrenNode, 1);
_SysTryCatch(NID_SCL, pLabel != null, ret = -EINVAL, "Failed to get the value.");
- SysLog(NID_SCL, "Node: label - %s", pLabel);
+ SysSecureLog(NID_SCL, "Node: label - %s", pLabel);
ret = account_type_set_label(accountTypeHandle, reinterpret_cast<char*> (pLabel), reinterpret_cast<char*> (pConvertedLangBuf->GetPointer()));
_SysTryCatch(NID_SCL, ret == ACCOUNT_ERROR_NONE, ret = -1, "Failed to set the display name.");
}
@@ -200,12 +200,12 @@ int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr docPtr, const char* packageId)
// Node: <capability>
else if ((!xmlStrcmp(curPtr->name, _NODE_CAPABILITY)))
{
- SysLog(NID_SCL, "Node: %s", curPtr->name);
+ SysSecureLog(NID_SCL, "Node: %s", curPtr->name);
xmlChar* pCapability = xmlNodeListGetString(docPtr, curPtr->xmlChildrenNode, 1);
_SysTryCatch(NID_SCL, pCapability != null, ret = -EINVAL, "Failed to get the value.");
- SysLog(NID_SCL, "Node: capability - %s", pCapability);
+ SysSecureLog(NID_SCL, "Node: capability - %s", pCapability);
ret = account_type_set_provider_feature(accountTypeHandle, reinterpret_cast<char*> (pCapability));
_SysTryCatch(NID_SCL, ret == ACCOUNT_ERROR_NONE, ret = -1, "Failed to set the capability.");
}
@@ -252,7 +252,7 @@ int PKGMGR_PARSER_PLUGIN_UNINSTALL(xmlDocPtr docPtr, const char* packageId)
xmlNodePtr curPtr = xmlFirstElementChild(xmlDocGetRootElement(docPtr));
_SysTryCatch(NID_SCL, curPtr != null, ret = -EINVAL, "Failed to get the element.");
- SysLog(NID_SCL, "Node: %s", curPtr->name);
+ SysSecureLog(NID_SCL, "Node: %s", curPtr->name);
// Get the children nodes
curPtr = curPtr->xmlChildrenNode;
@@ -260,7 +260,7 @@ int PKGMGR_PARSER_PLUGIN_UNINSTALL(xmlDocPtr docPtr, const char* packageId)
while(curPtr != null)
{
- SysLog(NID_SCL, "Node: %s", curPtr->name);
+ SysSecureLog(NID_SCL, "Node: %s", curPtr->name);
// Node: <account-provider>
if ((!xmlStrcmp(curPtr->name, _NODE_ACCOUNT_PROVIDER)))
@@ -269,7 +269,7 @@ int PKGMGR_PARSER_PLUGIN_UNINSTALL(xmlDocPtr docPtr, const char* packageId)
xmlChar* pAppIdId = xmlGetProp(curPtr, _ATTRIBUTE_APP_ID);
_SysTryCatch(NID_SCL, pAppIdId != null, ret = -EINVAL, "Failed to get the attribute.");
- SysLog(NID_SCL, "Attribute: appid - %s", pAppIdId);
+ SysSecureLog(NID_SCL, "Attribute: appid - %s", pAppIdId);
ret = account_delete_from_db_by_package_name(reinterpret_cast<char*> (pAppIdId));
_SysTryCatch(NID_SCL, ret == ACCOUNT_ERROR_NONE, ret = -1, "A system error has occurred.");