diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-02-25 18:28:50 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-07-26 20:48:49 +0200 |
commit | 94eaa2c82553e3902ee6ba13a247f3bf1b0dd928 (patch) | |
tree | d41ccc317381dd7545801813cd181aa9b1be639c | |
parent | 2bb3d23f8703e452ebf0a7e725dda6365dbb9b57 (diff) |
bts-trx: trx_if.c: Fix some printf formats
Compiler from raspberrypi4 warns/errors about those.
Change-Id: I4f973eb4ffdf8869b522d14e25853357fcd1e984
-rw-r--r-- | src/osmo-bts-trx/trx_if.c | 6 |
1 files 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; } |