Module: kamailio
Branch: master
Commit: 9cc9a177daf6d5ce11fbdef714bd576716dc5a2f
URL:
https://github.com/kamailio/kamailio/commit/9cc9a177daf6d5ce11fbdef714bd576…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2023-03-20T16:56:03+01:00
p_usrloc: use PRIu64 macro to find out what format is needed for uint64_t since it depends
on architecture
---
Modified: src/modules/p_usrloc/ul_check.c
---
Diff:
https://github.com/kamailio/kamailio/commit/9cc9a177daf6d5ce11fbdef714bd576…
Patch:
https://github.com/kamailio/kamailio/commit/9cc9a177daf6d5ce11fbdef714bd576…
---
diff --git a/src/modules/p_usrloc/ul_check.c b/src/modules/p_usrloc/ul_check.c
index dfc062f266..0ed32dc99f 100644
--- a/src/modules/p_usrloc/ul_check.c
+++ b/src/modules/p_usrloc/ul_check.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
#include <stdint.h>
#include "../../core/mem/shm_mem.h"
@@ -136,7 +137,7 @@ int must_retry(time_t *timer, time_t interval){
if(!timer){
return -1;
}
- LM_DBG("must_retry: time is at %llu, retry at %llu.\n", (uint64_t)time(NULL),
+ LM_DBG("must_retry: time is at %" PRIu64 ", retry at %" PRIu64
".\n", (uint64_t)time(NULL),
(uint64_t)(*timer));
if(*timer <= time(NULL)){
*timer = time(NULL) + interval;