aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-02-25 18:28:50 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-02-25 18:28:52 +0100
commiteba074e081507fbf11dc1ea916a4e67afacd461a (patch)
treeb39c2550673d565213ea71a6be2330098b0fdd6f
parent51845765727ddf994f4ccea38bee9490f2d5a95f (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.c6
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;
}