Browse code

db_redis: use TIME_T_INT_FMT

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>

Sebastian Kemper authored on 22/10/2021 23:31:49
Showing 1 changed files
... ...
@@ -142,7 +142,7 @@ static int db_redis_val2str(const db_val_t *v, str *_str) {
142 142
             _str->s[_str->len] = '\0';
143 143
             break;
144 144
         case DB1_DATETIME:
145
-            LM_DBG("converting datetime value %ld to str\n", VAL_TIME(v));
145
+            LM_DBG("converting datetime value %" TIME_T_INT_FMT " to str\n", VAL_TIME(v));
146 146
             _str->s = (char*)pkg_malloc(_str->len);
147 147
             if (!_str->s) goto memerr;
148 148
             localtime_r(&(VAL_TIME(v)), &_time);