aboutsummaryrefslogtreecommitdiffstats
path: root/src/libbsc/bsc_vty.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-10-23 14:51:31 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2017-10-23 14:52:15 +0200
commitf6e8e6692cdd181c239395755a2dc9963af6bd8b (patch)
treecc3b3d416d98ec05e6c50091835b78c0ec14c821 /src/libbsc/bsc_vty.c
parent73ab3f070a1fb7fbcf045f528d4109be400ccce6 (diff)
libbsc: Use correct printf formatting for uint64_t
unsigned long can be 32 bits on some arch/OS, while "current" field is always 64 bit because it's a uint64_t. Change-Id: Ibad1e4f09cf912cb654dbe3687a3f2182e2060f5
Diffstat (limited to 'src/libbsc/bsc_vty.c')
-rw-r--r--src/libbsc/bsc_vty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libbsc/bsc_vty.c b/src/libbsc/bsc_vty.c
index ca29b4c31..461e3d3a4 100644
--- a/src/libbsc/bsc_vty.c
+++ b/src/libbsc/bsc_vty.c
@@ -3769,20 +3769,20 @@ DEFUN(cfg_ts_e1_subslot,
void openbsc_vty_print_statistics(struct vty *vty, struct gsm_network *net)
{
- vty_out(vty, "Channel Requests : %lu total, %lu no channel%s",
+ vty_out(vty, "Channel Requests : %"PRIu64" total, %"PRIu64" no channel%s",
net->bsc_ctrs->ctr[BSC_CTR_CHREQ_TOTAL].current,
net->bsc_ctrs->ctr[BSC_CTR_CHREQ_NO_CHANNEL].current,
VTY_NEWLINE);
- vty_out(vty, "Channel Failures : %lu rf_failures, %lu rll failures%s",
+ vty_out(vty, "Channel Failures : %"PRIu64" rf_failures, %"PRIu64" rll failures%s",
net->bsc_ctrs->ctr[BSC_CTR_CHAN_RF_FAIL].current,
net->bsc_ctrs->ctr[BSC_CTR_CHAN_RLL_ERR].current,
VTY_NEWLINE);
- vty_out(vty, "Paging : %lu attempted, %lu complete, %lu expired%s",
+ vty_out(vty, "Paging : %"PRIu64" attempted, %"PRIu64" complete, %"PRIu64" expired%s",
net->bsc_ctrs->ctr[BSC_CTR_PAGING_ATTEMPTED].current,
net->bsc_ctrs->ctr[BSC_CTR_PAGING_COMPLETED].current,
net->bsc_ctrs->ctr[BSC_CTR_PAGING_EXPIRED].current,
VTY_NEWLINE);
- vty_out(vty, "BTS failures : %lu OML, %lu RSL%s",
+ vty_out(vty, "BTS failures : %"PRIu64" OML, %"PRIu64" RSL%s",
net->bsc_ctrs->ctr[BSC_CTR_BTS_OML_FAIL].current,
net->bsc_ctrs->ctr[BSC_CTR_BTS_RSL_FAIL].current,
VTY_NEWLINE);