Change in osmo-bsc[master]: fix some size-t format string characters

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
Fri Nov 20 13:44:55 UTC 2020


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

Change subject: fix some size-t format string characters
......................................................................

fix some size-t format string characters

(shows up on 32bit builds)

Change-Id: Idd588761d537f3fbff89d99c87738e3dc81c3527
---
M src/osmo-bsc/bsc_vty.c
M src/osmo-bsc/smscb.c
2 files changed, 2 insertions(+), 2 deletions(-)

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



diff --git a/src/osmo-bsc/bsc_vty.c b/src/osmo-bsc/bsc_vty.c
index c3d6658..5022fe1 100644
--- a/src/osmo-bsc/bsc_vty.c
+++ b/src/osmo-bsc/bsc_vty.c
@@ -328,7 +328,7 @@
 
 static void bts_dump_vty_cbch(struct vty *vty, const struct bts_smscb_chan_state *cstate)
 {
-	vty_out(vty, "  CBCH %s: %u messages, %u pages, %lu-entry sched_arr, %u%% load%s",
+	vty_out(vty, "  CBCH %s: %u messages, %u pages, %zu-entry sched_arr, %u%% load%s",
 		bts_smscb_chan_state_name(cstate), llist_count(&cstate->messages),
 		bts_smscb_chan_page_count(cstate), cstate->sched_arr_size,
 		bts_smscb_chan_load_percent(cstate), VTY_NEWLINE);
diff --git a/src/osmo-bsc/smscb.c b/src/osmo-bsc/smscb.c
index b34780b..8ce962a 100644
--- a/src/osmo-bsc/smscb.c
+++ b/src/osmo-bsc/smscb.c
@@ -366,7 +366,7 @@
 	smscb->input.dcs = wrepl->u.cbs.dcs;
 	smscb->num_pages = llist_count(&wrepl->u.cbs.msg_content);
 	if (smscb->num_pages > ARRAY_SIZE(smscb->page)) {
-		LOG_BTS(bts, DCBS, LOGL_ERROR, "SMSCB with too many pages (%u > %lu)\n",
+		LOG_BTS(bts, DCBS, LOGL_ERROR, "SMSCB with too many pages (%u > %zu)\n",
 			smscb->num_pages, ARRAY_SIZE(smscb->page));
 		talloc_free(smscb);
 		return NULL;

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

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: Idd588761d537f3fbff89d99c87738e3dc81c3527
Gerrit-Change-Number: 21261
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201120/b3dc8146/attachment.htm>


More information about the gerrit-log mailing list