[2/2] fix some format specifiers
diff mbox

Message ID 1446840034-11954-3-git-send-email-alexander.huemer@xx.vu
State New
Headers show

Commit Message

Alexander Huemer Nov. 6, 2015, 8 p.m. UTC
---
 src/pcu_vty_functions.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Comments

Holger Freyther Jan. 15, 2016, 2:39 p.m. UTC | #1
> On 06 Nov 2015, at 21:00, Alexander Huemer <alexander.huemer@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
>

Patch
diff mbox

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",