[PATCH 2/2] fix some format specifiers

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/OpenBSC@lists.osmocom.org/.

Holger Freyther holger at freyther.de
Fri Jan 15 14:39:19 UTC 2016


> On 06 Nov 2015, at 21:00, Alexander Huemer <alexander.huemer at xx.vu> wrote:


Dear Jacob,

this seems to still apply. Could you please review and update the case on patchwork?

kind regards
  holger


> 
> ---
> src/pcu_vty_functions.cpp | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp
> index d2a3641..df24171 100644
> --- a/src/pcu_vty_functions.cpp
> +++ b/src/pcu_vty_functions.cpp
> @@ -22,6 +22,7 @@
> 
> #include <stdint.h>
> #include <stdlib.h>
> +#include <inttypes.h>
> #include "pcu_vty_functions.h"
> #include "bts.h"
> #include "gprs_ms_storage.h"
> @@ -47,7 +48,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=%d, CS-DL=%d, LLC=%d, "
> +		vty_out(vty, "MS TLLI=%08x, TA=%d, CS-UL=%d, CS-DL=%d, LLC=%zu, "
> 			"IMSI=%s%s",
> 			ms->tlli(),
> 			ms->ta(), ms->current_cs_ul(), ms->current_cs_dl(),
> @@ -70,9 +71,9 @@ static int show_ms(struct vty *vty, GprsMs *ms)
> 	vty_out(vty, "  Coding scheme downlink: CS-%d%s", ms->current_cs_dl(),
> 		VTY_NEWLINE);
> 	vty_out(vty, "  MS class:               %d%s", ms->ms_class(), VTY_NEWLINE);
> -	vty_out(vty, "  LLC queue length:       %d%s", ms->llc_queue()->size(),
> +	vty_out(vty, "  LLC queue length:       %zu%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:       %zu%s", ms->llc_queue()->octets(),
> 		VTY_NEWLINE);
> 	if (ms->l1_meas()->have_rssi)
> 		vty_out(vty, "  RSSI:                   %d dBm%s",
> -- 
> 2.6.2
> 




More information about the OpenBSC mailing list