summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-10-23 14:55:08 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2017-10-23 13:52:37 +0000
commit65021ac50792a42bcc21e482c27e0f915c435716 (patch)
tree730eb43055559b64ef8a271a95452fd9fade0bb3
parent957ceb1b792a274582e88ed2963dc959f5385ce0 (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: I9719c69ef661bb46d8bb43cf8d6537c3e8d47826
-rw-r--r--openbsc/src/libbsc/bsc_vty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/src/libbsc/bsc_vty.c b/openbsc/src/libbsc/bsc_vty.c
index 0d5377d6a..f50ebd8f4 100644
--- a/openbsc/src/libbsc/bsc_vty.c
+++ b/openbsc/src/libbsc/bsc_vty.c
@@ -3750,20 +3750,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);