From b9eea8c579f2682028c10e7a2c8de88f6642d628 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 29 Oct 2021 08:25:50 -0400 Subject: [PATCH] TT#14008 fix 32-bit compiler warnings Change-Id: Ibf2d631245e2ee67ee2023647ceac349e8c9b605 --- daemon/cli.c | 9 ++++++--- daemon/control_ng.c | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/daemon/cli.c b/daemon/cli.c index dcdd163a6..a0f089f16 100644 --- a/daemon/cli.c +++ b/daemon/cli.c @@ -441,9 +441,12 @@ static void cli_incoming_list_numsessions(str *instr, struct cli_writer *cw) { cw->cw_printf(cw, "Current sessions total: %i\n", g_hash_table_size(rtpe_callhash)); rwlock_unlock_r(&rtpe_callhash_lock); cw->cw_printf(cw, "Current transcoded media: "UINT64F"\n", atomic64_get(&rtpe_stats_gauge.transcoded_media)); - cw->cw_printf(cw, "Current sessions ipv4 only media: %li\n", atomic64_get(&rtpe_stats_gauge.ipv4_sessions)); - cw->cw_printf(cw, "Current sessions ipv6 only media: %li\n", atomic64_get(&rtpe_stats_gauge.ipv6_sessions)); - cw->cw_printf(cw, "Current sessions ip mixed media: %li\n", atomic64_get(&rtpe_stats_gauge.mixed_sessions)); + cw->cw_printf(cw, "Current sessions ipv4 only media: " UINT64F "\n", + atomic64_get(&rtpe_stats_gauge.ipv4_sessions)); + cw->cw_printf(cw, "Current sessions ipv6 only media: " UINT64F "\n", + atomic64_get(&rtpe_stats_gauge.ipv6_sessions)); + cw->cw_printf(cw, "Current sessions ip mixed media: " UINT64F "\n", + atomic64_get(&rtpe_stats_gauge.mixed_sessions)); } static void cli_incoming_list_maxsessions(str *instr, struct cli_writer *cw) { diff --git a/daemon/control_ng.c b/daemon/control_ng.c index d4fa52e93..67e973ed5 100644 --- a/daemon/control_ng.c +++ b/daemon/control_ng.c @@ -464,7 +464,7 @@ static str *chunk_message(struct streambuf *b) { static void control_stream_readable(struct streambuf_stream *s) { str *data; - ilog(LOG_DEBUG, "Got %ld bytes from %s", s->inbuf->buf->len, s->addr); + ilog(LOG_DEBUG, "Got %zu bytes from %s", s->inbuf->buf->len, s->addr); while ((data = chunk_message(s->inbuf))) { ilog(LOG_DEBUG, "Got control ng message from %s", s->addr); control_ng_process(data, &s->sock.remote, s->addr, control_ng_send, &s->sock, s->parent);