Module: kamailio
Branch: master
Commit: 46455859652ad4fddd6271235298bd83f96e0556
URL:
https://github.com/kamailio/kamailio/commit/46455859652ad4fddd6271235298bd8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-04-10T08:32:10+02:00
dispatcher: use PRIu64 to print uint64_t values
---
Modified: src/modules/dispatcher/ds_ht.c
---
Diff:
https://github.com/kamailio/kamailio/commit/46455859652ad4fddd6271235298bd8…
Patch:
https://github.com/kamailio/kamailio/commit/46455859652ad4fddd6271235298bd8…
---
diff --git a/src/modules/dispatcher/ds_ht.c b/src/modules/dispatcher/ds_ht.c
index c5f239c075c..ab0cd10b20b 100644
--- a/src/modules/dispatcher/ds_ht.c
+++ b/src/modules/dispatcher/ds_ht.c
@@ -21,6 +21,7 @@
#include <stddef.h>
#include <stdint.h>
#include <regex.h>
+#include <inttypes.h>
#include "../../core/mem/shm_mem.h"
#include "../../core/mem/mem.h"
@@ -334,7 +335,7 @@ int ds_ht_dbg(ds_ht_t *dsht)
while(it) {
LM_ERR("\tcell: %.*s\n", it->callid.len, it->callid.s);
LM_ERR("\tduid: %.*s\n", it->duid.len, it->duid.s);
- LM_ERR("\thid: %u expire: %llu initexpire: %llu\n", it->cellid,
+ LM_ERR("\thid: %u expire: %" PRIu64 " initexpire: %" PRIu64
"\n", it->cellid,
(uint64_t)it->expire, (uint64_t)it->initexpire);
LM_ERR("\tdset:%d\n", it->dset);
it = it->next;