From f9edcce33730d4ce207691bfe673aa80e9b012f5 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Mon, 2 Dec 2024 17:26:03 +0100 Subject: [PATCH] MT#59962 sw_vsc: Fix compilation warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix a list of compilation warnings like: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘uint64_t’ {aka ‘long unsigned int’} Change-Id: I93ca45869c33040d1e53bb8d29fdf7e7e70603bf --- apps/sw_vsc/SW_Vsc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/sw_vsc/SW_Vsc.cpp b/apps/sw_vsc/SW_Vsc.cpp index 281372f4..5f7028a3 100644 --- a/apps/sw_vsc/SW_Vsc.cpp +++ b/apps/sw_vsc/SW_Vsc.cpp @@ -301,7 +301,7 @@ u_int64_t SW_VscDialog::getAttributeId(MYSQL *my_handler, const char *attribute) res = mysql_store_result(my_handler); if (mysql_num_rows(res) != 1) { - ERROR("Found invalid number of id entries for attribute '%s': %llu", + ERROR("Found invalid number of id entries for attribute '%s': %lu", attribute, mysql_num_rows(res)); return 0; } @@ -381,7 +381,7 @@ u_int64_t SW_VscDialog::getSubscriberId(MYSQL *my_handler, const char *uuid, res = mysql_store_result(my_handler); if (mysql_num_rows(res) != 1) { - ERROR("Found invalid number of id entries for uuid '%s': %llu", + ERROR("Found invalid number of id entries for uuid '%s': %lu", uuid , mysql_num_rows(res)); return 0; } @@ -434,7 +434,7 @@ u_int64_t SW_VscDialog::getPreference(MYSQL *my_handler, u_int64_t subscriberId, } if (mysql_num_rows(res) != 1) { - ERROR("Found invalid number of id entries for subscriber id '%llu' and attribute id '%llu': %llu", + ERROR("Found invalid number of id entries for subscriber id '%llu' and attribute id '%llu': %lu", (unsigned long long int)subscriberId, (unsigned long long int)attributeId, mysql_num_rows(res)); mysql_free_result(res);