浏览代码

dlgs: use PRIu64 to print uint64_t

Daniel-Constantin Mierla 2 年之前
父节点
当前提交
c5d846d499
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/modules/dlgs/dlgs_records.c

+ 2 - 1
src/modules/dlgs/dlgs_records.c

@@ -27,6 +27,7 @@
 #include <stdint.h>
 #include <regex.h>
 #include <fnmatch.h>
+#include <inttypes.h>
 
 #include "../../core/dprint.h"
 #include "../../core/ut.h"
@@ -658,7 +659,7 @@ int dlgs_ht_dbg(void)
 			LM_ERR("\tdst: %.*s\n", it->dst.len, it->dst.s);
 			LM_ERR("\tdata: %.*s\n", it->data.len, it->data.s);
 			LM_ERR("\truid: %.*s\n", it->ruid.len, it->ruid.s);
-			LM_ERR("\thashid: %u ts_init: %llu ts_answer: %llu\n", it->hashid,
+			LM_ERR("\thashid: %u ts_init: %" PRIu64 " ts_answer: %" PRIu64 "\n", it->hashid,
 					(uint64_t)it->ts_init, (uint64_t)it->ts_answer);
 			it = it->next;
 		}