Module: kamailio Branch: master Commit: da18d99e509c86ac21f04cf36184cadfe16fce83 URL: https://github.com/kamailio/kamailio/commit/da18d99e509c86ac21f04cf36184cadf...
Author: Victor Seva linuxmaniac@torreviejawireless.org Committer: Victor Seva linuxmaniac@torreviejawireless.org Date: 2018-12-20T00:09:39+01:00
topos_redis: fix compilation warnings
warning: field precision should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat]
---
Modified: src/modules/topos_redis/topos_redis_storage.c
---
Diff: https://github.com/kamailio/kamailio/commit/da18d99e509c86ac21f04cf36184cadf... Patch: https://github.com/kamailio/kamailio/commit/da18d99e509c86ac21f04cf36184cadf...
---
diff --git a/src/modules/topos_redis/topos_redis_storage.c b/src/modules/topos_redis/topos_redis_storage.c index 4ba31f404a..2f78d21dce 100644 --- a/src/modules/topos_redis/topos_redis_storage.c +++ b/src/modules/topos_redis/topos_redis_storage.c @@ -654,7 +654,7 @@ int tps_redis_load_invite_branch(sip_msg_t *msg, tps_data_t *md, tps_data_t *sd) sval.s = NULL; switch(rrpl->element[i]->type) { case REDIS_REPLY_STRING: - LM_DBG("r[%d]: s[%.*s]\n", i, rrpl->element[i]->len, + LM_DBG("r[%d]: s[%.*s]\n", i, (int)rrpl->element[i]->len, rrpl->element[i]->str); sval.s = rrpl->element[i]->str; sval.len = rrpl->element[i]->len; @@ -802,7 +802,7 @@ int tps_redis_load_branch(sip_msg_t *msg, tps_data_t *md, tps_data_t *sd, sval.s = NULL; switch(rrpl->element[i]->type) { case REDIS_REPLY_STRING: - LM_DBG("r[%d]: s[%.*s]\n", i, rrpl->element[i]->len, + LM_DBG("r[%d]: s[%.*s]\n", i, (int)rrpl->element[i]->len, rrpl->element[i]->str); sval.s = rrpl->element[i]->str; sval.len = rrpl->element[i]->len; @@ -1005,7 +1005,7 @@ int tps_redis_load_dialog(sip_msg_t *msg, tps_data_t *md, tps_data_t *sd) sval.s = NULL; switch(rrpl->element[i]->type) { case REDIS_REPLY_STRING: - LM_DBG("r[%d]: s[%.*s]\n", i, rrpl->element[i]->len, + LM_DBG("r[%d]: s[%.*s]\n", i, (int)rrpl->element[i]->len, rrpl->element[i]->str); sval.s = rrpl->element[i]->str; sval.len = rrpl->element[i]->len;