Browse code

xhttp_pi: use TIME_T_INT_FMT

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

Sebastian Kemper authored on 22/10/2021 23:49:15
Showing 1 changed files
... ...
@@ -3186,7 +3186,7 @@ int ph_run_pi_cmd(pi_ctx_t* ctx)
3186 3186
 						val_str.len = max_page_len - ctx->reply.body.len;
3187 3187
 						if(db_time2str(values[j].val.time_val,
3188 3188
 									val_str.s, &val_str.len)!=0){
3189
-							LM_ERR("Unable to convert double [%ld]\n",
3189
+							LM_ERR("Unable to convert double [%" TIME_T_INT_FMT "]\n",
3190 3190
 								values[j].val.time_val);
3191 3191
 							goto error;
3192 3192
 						}
... ...
@@ -3194,7 +3194,7 @@ int ph_run_pi_cmd(pi_ctx_t* ctx)
3194 3194
 						ctx->reply.body.len += val_str.len;
3195 3195
 						if(link_on) XHTTP_PI_COPY_2(p,XHTTP_PI_SQUOT_GT,val_str);
3196 3196
 						LM_DBG("   got %.*s[%d]=>"
3197
-							"[%ld][%.*s]\n",
3197
+							"[%" TIME_T_INT_FMT "][%.*s]\n",
3198 3198
 							command->q_keys[j]->len,
3199 3199
 							command->q_keys[j]->s, i,
3200 3200
 							values[j].val.time_val,