Change in osmo-bts[master]: bts-trx: trx_if.c: Fix some printf formats

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Tue Feb 25 17:42:25 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/17259 )

Change subject: bts-trx: trx_if.c: Fix some printf formats
......................................................................

bts-trx: trx_if.c: Fix some printf formats

Compiler from raspberrypi4 warns/errors about those.

Change-Id: I4f973eb4ffdf8869b522d14e25853357fcd1e984
---
M src/osmo-bts-trx/trx_if.c
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c
index 099c330..f717a0c 100644
--- a/src/osmo-bts-trx/trx_if.c
+++ b/src/osmo-bts-trx/trx_if.c
@@ -394,8 +394,8 @@
 		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 @@
 		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;
 	}

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/17259
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I4f973eb4ffdf8869b522d14e25853357fcd1e984
Gerrit-Change-Number: 17259
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200225/b02fb0d6/attachment.htm>


More information about the gerrit-log mailing list