aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcu_vty_functions.cpp
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-03-30 22:08:18 +0200
committerHarald Welte <laforge@gnumonks.org>2016-03-30 22:08:18 +0200
commit63d33ad2d79683fab33542570e20d082bb66476c (patch)
treeccd090911616ed383172dc9855913dc32eb8e3ba /src/pcu_vty_functions.cpp
parent7952282b78867e53ab8fd9cf819d1f9fdece58ba (diff)
fix compiler warnings about format string for size_t
with gcc-5.3 on x86_64 I get the following compliler warnings: warning: format ‘%d’ expects argument of type ‘int’, but argument 7 has type ‘size_t {aka long unsigned int} This patch resolves them
Diffstat (limited to 'src/pcu_vty_functions.cpp')
-rw-r--r--src/pcu_vty_functions.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp
index 166b15eb..8009535c 100644
--- a/src/pcu_vty_functions.cpp
+++ b/src/pcu_vty_functions.cpp
@@ -102,7 +102,7 @@ int pcu_vty_show_ms_all(struct vty *vty, struct gprs_rlcmac_bts *bts_data)
llist_for_each(ms_iter, &bts->ms_store().ms_list()) {
GprsMs *ms = ms_iter->entry();
- vty_out(vty, "MS TLLI=%08x, TA=%d, CS-UL=%s, CS-DL=%s, LLC=%d, "
+ vty_out(vty, "MS TLLI=%08x, TA=%d, CS-UL=%s, CS-DL=%s, LLC=%zd, "
"IMSI=%s%s",
ms->tlli(),
ms->ta(), ms->current_cs_ul().name(),
@@ -136,9 +136,9 @@ static int show_ms(struct vty *vty, GprsMs *ms)
if (slots & (1 << i))
vty_out(vty, "%d ", i);
vty_out(vty, "%s", VTY_NEWLINE);
- vty_out(vty, " LLC queue length: %d%s", ms->llc_queue()->size(),
+ vty_out(vty, " LLC queue length: %zd%s", ms->llc_queue()->size(),
VTY_NEWLINE);
- vty_out(vty, " LLC queue octets: %d%s", ms->llc_queue()->octets(),
+ vty_out(vty, " LLC queue octets: %zd%s", ms->llc_queue()->octets(),
VTY_NEWLINE);
if (ms->l1_meas()->have_rssi)
vty_out(vty, " RSSI: %d dBm%s",