Change in osmo-bsc[master]: Meas Tools, Avoid compiler format warnings

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
Sun Mar 29 14:23:49 UTC 2020


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

Change subject: Meas Tools, Avoid compiler format warnings
......................................................................

Meas Tools, Avoid compiler format warnings

Change-Id: I8d807ffc4571f2954e3d1083da673dc1235e7687
---
M src/utils/meas_vis.c
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  fixeria: Looks good to me, approved



diff --git a/src/utils/meas_vis.c b/src/utils/meas_vis.c
index e10d814..01be986 100644
--- a/src/utils/meas_vis.c
+++ b/src/utils/meas_vis.c
@@ -205,7 +205,7 @@
 	snprintf(msu->label, sizeof(msu->label), "</%d>%1d<!%d> %3d %2u %2d %4u",
 		 qual_col, lq->rx_qual, qual_col, pwr,
 		 ms->mr.ms_l1.ta, ms->mr.ms_timing_offset,
-		 now - msu->last_update);
+		 (unsigned int)(now - msu->last_update));
 	msu->cdk_label = newCDKLabel(g_st.cdkscreen, RIGHT, row,
 					msu->_lbl, 1, FALSE, FALSE);
 }
@@ -281,8 +281,8 @@
 
 	msgb_talloc_ctx_init(NULL, 0);
 
-	printf("sizeof(gsm_meas_rep)=%u\n", sizeof(struct gsm_meas_rep));
-	printf("sizeof(meas_feed_meas)=%u\n", sizeof(struct meas_feed_meas));
+	printf("sizeof(gsm_meas_rep)=%zu\n", sizeof(struct gsm_meas_rep));
+	printf("sizeof(meas_feed_meas)=%zu\n", sizeof(struct meas_feed_meas));
 	g_st.udp_ofd.cb = udp_fd_cb;
 	rc =  osmo_sock_init_ofd(&g_st.udp_ofd, AF_INET, SOCK_DGRAM, IPPROTO_UDP, NULL, 8888, OSMO_SOCK_F_BIND);
 	if (rc < 0)

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

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I8d807ffc4571f2954e3d1083da673dc1235e7687
Gerrit-Change-Number: 17649
Gerrit-PatchSet: 6
Gerrit-Owner: keith <keith at rhizomatica.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: keith <keith at rhizomatica.org>
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/20200329/0930c561/attachment.htm>


More information about the gerrit-log mailing list