[0.1.21] Fix format specifiers 33/306333/1 accepted/tizen_unified_toolchain accepted/tizen/unified/20240222.012627 accepted/tizen/unified/toolchain/20240311.065039 accepted/tizen/unified/x/20240222.211114
authorDewal Agarwal <d1.agarwal@samsung.com>
Tue, 20 Feb 2024 08:15:17 +0000 (17:15 +0900)
committerDewal Agarwal <d1.agarwal@samsung.com>
Tue, 20 Feb 2024 08:15:17 +0000 (17:15 +0900)
Change-Id: Ie0bc7de9c185bc1b91d6e22b8b4a48bbb9938007
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
packaging/account-manager.spec
server/src/account-server-db.c
server/src/account-server.c

index da56c0e..86f83f6 100644 (file)
@@ -1,6 +1,6 @@
 Name:       account-manager
 Summary:    Account Manager
-Version:    0.1.20
+Version:    0.1.21
 Release:    1
 Group:      Social & Content/Other
 License:    Apache-2.0
index a968ac2..8ba8eec 100644 (file)
@@ -234,7 +234,7 @@ int _account_global_db_open(void)
        ACCOUNT_GET_GLOBAL_DB_PATH(account_db_path, sizeof(account_db_path));
 
        if (g_hAccountGlobalDB) {
-               _ERR("Account database is using in another app. %x", g_hAccountDB);
+               _ERR("Account database is using in another app");
                return _ACCOUNT_ERROR_DATABASE_BUSY;
        }
 
@@ -337,7 +337,7 @@ int _account_db_open(int mode, int pid, uid_t uid)
        ACCOUNT_GET_USER_DB_PATH(account_db_path, sizeof(account_db_path), uid);
 
        if (g_hAccountDB) {
-               _ERR("Account database is using in another app. %x", g_hAccountDB);
+               _ERR("Account database is using in another app");
                return _ACCOUNT_ERROR_DATABASE_BUSY;
        }
 
@@ -3208,7 +3208,7 @@ static int _account_type_update_provider_feature(sqlite3 *account_db_handle, acc
                return _ACCOUNT_ERROR_NONE;
        }
 
-       ACCOUNT_DEBUG("app id", app_id);
+       ACCOUNT_DEBUG("app id[%s]", app_id);
 
        ACCOUNT_MEMSET(query, 0x00, sizeof(query));
 
@@ -3929,7 +3929,7 @@ int _account_type_query_by_provider_feature_from_global_db(const char* key, GSLi
        rc = _account_query_finalize(hstmt);
        if (rc != _ACCOUNT_ERROR_NONE) {
                _account_type_gslist_account_type_free(account_type_list);
-               ACCOUNT_ERROR("finalize error(%s)", rc);
+               ACCOUNT_ERROR("finalize error(%d)", rc);
                error_code = rc;
                goto CATCH;
        }
@@ -3960,7 +3960,7 @@ CATCH:
        if (hstmt != NULL) {
                rc = _account_query_finalize(hstmt);
                if (rc != _ACCOUNT_ERROR_NONE) {
-                       ACCOUNT_ERROR("finalize error(%s)", rc);
+                       ACCOUNT_ERROR("finalize error(%d)", rc);
                        return rc;
                }
                hstmt = NULL;
@@ -4034,7 +4034,7 @@ GSList* _account_type_query_by_provider_feature(const char* key, int *error_code
        rc = _account_query_finalize(hstmt);
        if (rc != _ACCOUNT_ERROR_NONE) {
                _account_type_gslist_account_type_free(account_type_list);
-               ACCOUNT_ERROR("finalize error(%s)", rc);
+               ACCOUNT_ERROR("finalize error(%d)", rc);
                *error_code = rc;
                goto CATCH;
        }
@@ -4436,7 +4436,7 @@ static int _account_insert_custom(account_s *account, int account_id)
        rc = _account_get_record_count(g_hAccountDB, query);
 
        if (_account_db_err_code(g_hAccountDB) == SQLITE_PERM) {
-               ACCOUNT_ERROR("Access failed(%d, %s)", _account_db_err_msg(g_hAccountDB));
+               ACCOUNT_ERROR("Access failed(%s)", _account_db_err_msg(g_hAccountDB));
                return _ACCOUNT_ERROR_PERMISSION_DENIED;
        }
 
index 20854eb..6e7071b 100644 (file)
@@ -898,7 +898,7 @@ account_manager_account_get_total_count_from_db(AccountManager *object, GDBusMet
 
        _INFO("before account_get_total_count_from_db");
        return_code = _account_get_total_count_from_db(include_hidden, &count);
-       _INFO("before account_get_total_count_from_db=[%d], return_code");
+       _INFO("before account_get_total_count_from_db=[%d]", return_code);
 
        if (return_code != _ACCOUNT_ERROR_NONE) {
                _ERR("_account_get_total_count_from_db error");