diff --git a/modules/aaa_diameter/dm_impl.c b/modules/aaa_diameter/dm_impl.c index b4de5fd21a..23c9ac8de5 100644 --- a/modules/aaa_diameter/dm_impl.c +++ b/modules/aaa_diameter/dm_impl.c @@ -20,6 +20,7 @@ #include #include +#include #include "../../ut.h" #include "../../lib/list.h" @@ -481,7 +482,7 @@ static int dm_avps2json(void *root, cJSON *avps) break; case AVP_TYPE_INTEGER64: - LM_DBG("%2d. got int64 AVP %s (%u), value: %ld\n", i, dm_avp.avp_name, h->avp_code, h->avp_value->i64); + LM_DBG("%2d. got int64 AVP %s (%u), value: %" PRId64 "\n", i, dm_avp.avp_name, h->avp_code, h->avp_value->i64); num_val = (double)h->avp_value->i64; break; @@ -491,7 +492,7 @@ static int dm_avps2json(void *root, cJSON *avps) break; case AVP_TYPE_UNSIGNED64: - LM_DBG("%2d. got uint64 AVP %s (%u), value: %lu\n", i, dm_avp.avp_name, h->avp_code, h->avp_value->u64); + LM_DBG("%2d. got uint64 AVP %s (%u), value: %" PRIu64 "\n", i, dm_avp.avp_name, h->avp_code, h->avp_value->u64); num_val = (double)h->avp_value->u64; break; diff --git a/modules/http2d/server.c b/modules/http2d/server.c index 0154e1e851..8707286283 100644 --- a/modules/http2d/server.c +++ b/modules/http2d/server.c @@ -635,7 +635,7 @@ static int on_frame_recv_callback(nghttp2_session *session, switch (frame->hd.type) { case NGHTTP2_DATA: case NGHTTP2_HEADERS: - LM_DBG("h2 header [%d], %p %ld\n", frame->hd.type, frame->headers.nva, frame->headers.nvlen); + LM_DBG("h2 header [%d], %p %zu\n", frame->hd.type, frame->headers.nva, frame->headers.nvlen); /* Check that the client request has finished */ if (frame->hd.flags & NGHTTP2_FLAG_END_STREAM) { stream_data =