Fix Wformat build error 13/186413/1 accepted/tizen/unified/20180814.063242 submit/tizen/20180813.074740 submit/tizen/20180813.114120
authoryhji <yhji.lee@samsung.com>
Thu, 9 Aug 2018 10:30:17 +0000 (19:30 +0900)
committeryhji <yhji.lee@samsung.com>
Thu, 9 Aug 2018 10:30:17 +0000 (19:30 +0900)
Change-Id: Ibd13eb1d809f36b5747b7c27ca45c576801d50da
Signed-off-by: yhji <yhji.lee@samsung.com>
common/src/account_db_helper.c

index 6840458f48f6435888ad3ce1f31c73be6cfca14d..87361ff9ecf98680ece8ae669ca6110bfeaf58e8 100644 (file)
@@ -1608,10 +1608,10 @@ int _account_delete_account_by_package_name(sqlite3 *account_db_handle, const ch
        /* delete custom table */
        error_code = _account_delete_table(account_db_handle, &hstmt, account_id_list, package_name, NULL, ACCOUNT_CUSTOM_TABLE);
        if ((error_code == _ACCOUNT_ERROR_DB_FAILED) || (error_code == _ACCOUNT_ERROR_RECORD_NOT_FOUND)) {
-               _ERR("account-custom-table deletion failed - db error[%s]", error_code);
+               _ERR("account-custom-table deletion failed - db error[%d]", error_code);
                goto CATCH;
        } else if (error_code != _ACCOUNT_ERROR_NONE) {
-               _ERR("account-custom-table deletion failed - error[%s]", error_code);
+               _ERR("account-custom-table deletion failed - error[%d]", error_code);
                return error_code;
        }
 
@@ -1620,10 +1620,10 @@ int _account_delete_account_by_package_name(sqlite3 *account_db_handle, const ch
        /* delete capability table */
        error_code = _account_delete_table(account_db_handle, &hstmt, account_id_list, package_name, NULL, CAPABILITY_TABLE);
        if ((error_code == _ACCOUNT_ERROR_DB_FAILED) || (error_code == _ACCOUNT_ERROR_RECORD_NOT_FOUND)) {
-               _ERR("account-custom-table deletion failed - db error[%s]", error_code);
+               _ERR("account-custom-table deletion failed - db error[%d]", error_code);
                goto CATCH;
        } else if (error_code != _ACCOUNT_ERROR_NONE) {
-               _ERR("account-custom-table deletion failed - error[%s]", error_code);
+               _ERR("account-custom-table deletion failed - error[%d]", error_code);
                return error_code;
        }
 
@@ -1631,10 +1631,10 @@ int _account_delete_account_by_package_name(sqlite3 *account_db_handle, const ch
        /* delete account table */
        error_code = _account_delete_table(account_db_handle, &hstmt, account_id_list, package_name, NULL, ACCOUNT_TABLE);
        if ((error_code == _ACCOUNT_ERROR_DB_FAILED) || (error_code == _ACCOUNT_ERROR_RECORD_NOT_FOUND)) {
-               _ERR("account-custom-table deletion failed - db error[%s]", error_code);
+               _ERR("account-custom-table deletion failed - db error[%d]", error_code);
                goto CATCH;
        } else if (error_code != _ACCOUNT_ERROR_NONE) {
-               _ERR("account-custom-table deletion failed - error[%s]", error_code);
+               _ERR("account-custom-table deletion failed - error[%d]", error_code);
                return error_code;
        }
        is_success = TRUE;
@@ -2032,20 +2032,20 @@ int _account_type_delete_by_app_id(sqlite3 *account_db_handle, const char* app_i
        /*delete label table*/
        error_code = _account_delete_table(account_db_handle, &hstmt, NULL, NULL, app_id, LABEL_TABLE);
        if ((error_code == _ACCOUNT_ERROR_DB_FAILED) || (error_code == _ACCOUNT_ERROR_RECORD_NOT_FOUND)) {
-               _ERR("account-custom-table deletion failed - db error[%s]", error_code);
+               _ERR("account-custom-table deletion failed - db error[%d]", error_code);
                goto CATCH;
        } else if (error_code != _ACCOUNT_ERROR_NONE) {
-               _ERR("account-custom-table deletion failed - error[%s]", error_code);
+               _ERR("account-custom-table deletion failed - error[%d]", error_code);
                return error_code;
        }
 
        /*delete provider feature table*/
        error_code = _account_delete_table(account_db_handle, &hstmt, NULL, NULL, app_id, PROVIDER_FEATURE_TABLE);
        if ((error_code == _ACCOUNT_ERROR_DB_FAILED) || (error_code == _ACCOUNT_ERROR_RECORD_NOT_FOUND)) {
-               _ERR("account-custom-table deletion failed - db error[%s]", error_code);
+               _ERR("account-custom-table deletion failed - db error[%d]", error_code);
                goto CATCH;
        } else if (error_code != _ACCOUNT_ERROR_NONE) {
-               _ERR("account-custom-table deletion failed - error[%s]", error_code);
+               _ERR("account-custom-table deletion failed - error[%d]", error_code);
                return error_code;
        }
        is_success = TRUE;
@@ -2053,10 +2053,10 @@ int _account_type_delete_by_app_id(sqlite3 *account_db_handle, const char* app_i
        /*delete account type table*/
        error_code = _account_delete_table(account_db_handle, &hstmt, NULL, NULL, app_id, ACCOUNT_TYPE_TABLE);
        if ((error_code == _ACCOUNT_ERROR_DB_FAILED) || (error_code == _ACCOUNT_ERROR_RECORD_NOT_FOUND)) {
-               _ERR("account-custom-table deletion failed - db error[%s]", error_code);
+               _ERR("account-custom-table deletion failed - db error[%d]", error_code);
                goto CATCH;
        } else if (error_code != _ACCOUNT_ERROR_NONE) {
-               _ERR("account-custom-table deletion failed - error[%s]", error_code);
+               _ERR("account-custom-table deletion failed - error[%d]", error_code);
                return error_code;
        }
        is_success = TRUE;