Module: kamailio
Branch: master
Commit: e006a5b9ad0f47bfbc280de3b381d5b2dce6a4ce
URL:
https://github.com/kamailio/kamailio/commit/e006a5b9ad0f47bfbc280de3b381d5b…
Author: Sebastian Kemper <sebastian_ml(a)gmx.net>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-11-03T13:03:34+01:00
db_redis: use TIME_T_FMT
Signed-off-by: Sebastian Kemper <sebastian_ml(a)gmx.net>
---
Modified: src/modules/db_redis/redis_dbase.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e006a5b9ad0f47bfbc280de3b381d5b…
Patch:
https://github.com/kamailio/kamailio/commit/e006a5b9ad0f47bfbc280de3b381d5b…
---
diff --git a/src/modules/db_redis/redis_dbase.c b/src/modules/db_redis/redis_dbase.c
index c9a25adf36..f7e26e693e 100644
--- a/src/modules/db_redis/redis_dbase.c
+++ b/src/modules/db_redis/redis_dbase.c
@@ -142,7 +142,7 @@ static int db_redis_val2str(const db_val_t *v, str *_str) {
_str->s[_str->len] = '\0';
break;
case DB1_DATETIME:
- LM_DBG("converting datetime value %ld to str\n", VAL_TIME(v));
+ LM_DBG("converting datetime value %" TIME_T_FMT " to
str\n", TIME_T_CAST(VAL_TIME(v)));
_str->s = (char*)pkg_malloc(_str->len);
if (!_str->s) goto memerr;
localtime_r(&(VAL_TIME(v)), &_time);