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/.

keith gerrit-no-reply at lists.osmocom.org
Sat Mar 28 00:57:46 UTC 2020


keith has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/49/17649/1

diff --git a/src/utils/meas_vis.c b/src/utils/meas_vis.c
index 1cbafcf..47a9077 100644
--- a/src/utils/meas_vis.c
+++ b/src/utils/meas_vis.c
@@ -204,7 +204,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);
+		 (int)(now - msu->last_update));
 	msu->cdk_label = newCDKLabel(g_st.cdkscreen, RIGHT, row,
 					msu->_lbl, 1, FALSE, FALSE);
 }
@@ -288,8 +288,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)=%lu\n", sizeof(struct gsm_meas_rep));
+	printf("sizeof(meas_feed_meas)=%lu\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: 1
Gerrit-Owner: keith <keith at rhizomatica.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200328/2e6d97d7/attachment.htm>


More information about the gerrit-log mailing list