aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/meas_vis.c
diff options
context:
space:
mode:
authorKeith <keith@rhizomatica.org>2020-03-27 19:55:14 -0500
committerlaforge <laforge@osmocom.org>2020-03-29 14:23:44 +0000
commitb6c625303802eb0dfe2f45c5c5acc10410a6beac (patch)
tree87749594ad3fe150855ef551c64b73e03f77ad0f /src/utils/meas_vis.c
parent2c92f3c44f2e5bcfcabfe7771f17b77368d37b03 (diff)
Meas Tools, Avoid compiler format warnings
Diffstat (limited to 'src/utils/meas_vis.c')
-rw-r--r--src/utils/meas_vis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/meas_vis.c b/src/utils/meas_vis.c
index e10d8148c..01be98611 100644
--- a/src/utils/meas_vis.c
+++ b/src/utils/meas_vis.c
@@ -205,7 +205,7 @@ void write_uni(struct ms_state *ms, struct ms_state_uni *msu,
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 @@ int main(int argc, char **argv)
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)