Module: kamailio
Branch: master
Commit: 1b3224c514105d69c3099c11edc5ef20ca02c567
URL:
https://github.com/kamailio/kamailio/commit/1b3224c514105d69c3099c11edc5ef2…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2023-03-20T16:53:15+01:00
rtpengine: use PRIu64 macro to find out what format is needed for uint64_t since it
depends on architecture
---
Modified: src/modules/rtpengine/rtpengine.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1b3224c514105d69c3099c11edc5ef2…
Patch:
https://github.com/kamailio/kamailio/commit/1b3224c514105d69c3099c11edc5ef2…
---
diff --git a/src/modules/rtpengine/rtpengine.c b/src/modules/rtpengine/rtpengine.c
index 58c96efc0d..51bd9e380a 100644
--- a/src/modules/rtpengine/rtpengine.c
+++ b/src/modules/rtpengine/rtpengine.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
@@ -1337,7 +1338,7 @@ static void rtpengine_rpc_reload(rpc_t* rpc, void* ctx)
_rtpe_list_version->vernum += 1;
_rtpe_list_version->vertime = time(NULL);
- LM_DBG("current rtpengines list version: %d (%llu)\n",
+ LM_DBG("current rtpengines list version: %d (%" PRIu64 ")\n",
_rtpe_list_version->vernum,
(uint64_t)_rtpe_list_version->vertime);
rpc->rpl_printf(ctx, "Ok. Reload successful.");
@@ -1857,7 +1858,7 @@ static int build_rtpp_socks(int lmode, int rtest) {
if(_rtpe_list_vernum_local == _rtpe_list_version->vernum) {
/* same version for the list of rtpengines */
- LM_DBG("same rtpengines list version: %d (%llu)\n",
+ LM_DBG("same rtpengines list version: %d (%" PRIu64 ")\n",
_rtpe_list_version->vernum,
(uint64_t)_rtpe_list_version->vertime);
return 0;