From 94eaa2c82553e3902ee6ba13a247f3bf1b0dd928 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 25 Feb 2020 18:28:50 +0100 Subject: bts-trx: trx_if.c: Fix some printf formats Compiler from raspberrypi4 warns/errors about those. Change-Id: I4f973eb4ffdf8869b522d14e25853357fcd1e984 --- src/osmo-bts-trx/trx_if.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c index 099c3301..f717a0cf 100644 --- a/src/osmo-bts-trx/trx_if.c +++ b/src/osmo-bts-trx/trx_if.c @@ -394,8 +394,8 @@ static int parse_rsp(const char *buf_in, size_t len_in, struct trx_ctrl_rsp *rsp goto parse_err; if (p - buf_in >= sizeof(rsp->cmd)) { - LOGP(DTRX, LOGL_ERROR, "cmd buffer too small %lu >= %lu\n", - p - buf_in, sizeof(rsp->cmd)); + LOGP(DTRX, LOGL_ERROR, "cmd buffer too small %lu >= %zu\n", + (long unsigned) (p - buf_in), sizeof(rsp->cmd)); goto parse_err; } @@ -415,7 +415,7 @@ static int parse_rsp(const char *buf_in, size_t len_in, struct trx_ctrl_rsp *rsp k = p + strlen(p); if (strlen(k) >= sizeof(rsp->params)) { - LOGP(DTRX, LOGL_ERROR, "params buffer too small %lu >= %lu\n", + LOGP(DTRX, LOGL_ERROR, "params buffer too small %zu >= %zu\n", strlen(k), sizeof(rsp->params)); goto parse_err; } -- cgit v1.2.3