Pau Espin Pedrol has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/11824 )

Change subject: msc: vty: Fix integer printf formatting
......................................................................

msc: vty: Fix integer printf formatting

| ../../../git/src/libmsc/msc_vty.c:1202:44: warning: format '%lu' expects 
argument of type 'long unsigned int', but argument 3 has type 'uint64_t {aka 
long long unsigned int}' [-Wformat=]
|   vty_out(vty, "Location Update         : %lu attach, %lu normal, %lu 
periodic%s",
|                                             ^

Change-Id: Iae1c0b20a519ce71a21f72cea3c63694ef10adb4
---
M src/libmsc/msc_vty.c
1 file changed, 9 insertions(+), 9 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Neels Hofmeyr: Looks good to me, approved



diff --git a/src/libmsc/msc_vty.c b/src/libmsc/msc_vty.c
index 840559a..cdf3184 100644
--- a/src/libmsc/msc_vty.c
+++ b/src/libmsc/msc_vty.c
@@ -1199,42 +1199,42 @@
       "show statistics",
        SHOW_STR "Display network statistics\n")
 {
-       vty_out(vty, "Location Update         : %lu attach, %lu normal, %lu 
periodic%s",
+       vty_out(vty, "Location Update         : %" PRIu64 " attach, %" PRIu64 " 
normal, %" PRIu64 " periodic%s",
                gsmnet->msc_ctrs->ctr[MSC_CTR_LOC_UPDATE_TYPE_ATTACH].current,
                gsmnet->msc_ctrs->ctr[MSC_CTR_LOC_UPDATE_TYPE_NORMAL].current,
                gsmnet->msc_ctrs->ctr[MSC_CTR_LOC_UPDATE_TYPE_PERIODIC].current,
                VTY_NEWLINE);
-       vty_out(vty, "IMSI Detach Indications : %lu%s",
+       vty_out(vty, "IMSI Detach Indications : %" PRIu64 "%s",
                gsmnet->msc_ctrs->ctr[MSC_CTR_LOC_UPDATE_TYPE_DETACH].current,
                VTY_NEWLINE);
-       vty_out(vty, "Location Updating Results: %lu completed, %lu failed%s",
+       vty_out(vty, "Location Updating Results: %" PRIu64 " completed, %" 
PRIu64 " failed%s",
                gsmnet->msc_ctrs->ctr[MSC_CTR_LOC_UPDATE_COMPLETED].current,
                gsmnet->msc_ctrs->ctr[MSC_CTR_LOC_UPDATE_FAILED].current,
                VTY_NEWLINE);
-       vty_out(vty, "SMS MO                  : %lu submitted, %lu no 
receiver%s",
+       vty_out(vty, "SMS MO                  : %" PRIu64 " submitted, %" 
PRIu64 " no receiver%s",
                gsmnet->msc_ctrs->ctr[MSC_CTR_SMS_SUBMITTED].current,
                gsmnet->msc_ctrs->ctr[MSC_CTR_SMS_NO_RECEIVER].current,
                VTY_NEWLINE);
-       vty_out(vty, "SMS MT                  : %lu delivered, %lu no memory, 
%lu other error%s",
+       vty_out(vty, "SMS MT                  : %" PRIu64 " delivered, %" 
PRIu64 " no memory, %" PRIu64 " other error%s",
                gsmnet->msc_ctrs->ctr[MSC_CTR_SMS_DELIVERED].current,
                gsmnet->msc_ctrs->ctr[MSC_CTR_SMS_RP_ERR_MEM].current,
                gsmnet->msc_ctrs->ctr[MSC_CTR_SMS_RP_ERR_OTHER].current,
                VTY_NEWLINE);
-       vty_out(vty, "MO Calls                : %lu setup, %lu connect ack%s",
+       vty_out(vty, "MO Calls                : %" PRIu64 " setup, %" PRIu64 " 
connect ack%s",
                gsmnet->msc_ctrs->ctr[MSC_CTR_CALL_MO_SETUP].current,
                gsmnet->msc_ctrs->ctr[MSC_CTR_CALL_MO_CONNECT_ACK].current,
                VTY_NEWLINE);
-       vty_out(vty, "MT Calls                : %lu setup, %lu connect%s",
+       vty_out(vty, "MT Calls                : %" PRIu64 " setup, %" PRIu64 " 
connect%s",
                gsmnet->msc_ctrs->ctr[MSC_CTR_CALL_MT_SETUP].current,
                gsmnet->msc_ctrs->ctr[MSC_CTR_CALL_MT_CONNECT].current,
                VTY_NEWLINE);
-       vty_out(vty, "MO NC SS/USSD           : %lu requests, %lu established, 
%lu rejected%s",
+       vty_out(vty, "MO NC SS/USSD           : %" PRIu64 " requests, %" PRIu64 
" established, %" PRIu64 " rejected%s",
                gsmnet->msc_ctrs->ctr[MSC_CTR_NC_SS_MO_REQUESTS].current,
                gsmnet->msc_ctrs->ctr[MSC_CTR_NC_SS_MO_ESTABLISHED].current,
                gsmnet->msc_ctrs->ctr[MSC_CTR_NC_SS_MO_REQUESTS].current
                        - 
gsmnet->msc_ctrs->ctr[MSC_CTR_NC_SS_MO_ESTABLISHED].current,
                VTY_NEWLINE);
-       vty_out(vty, "MT NC SS/USSD           : %lu requests, %lu established, 
%lu rejected%s",
+       vty_out(vty, "MT NC SS/USSD           : %" PRIu64 " requests, %" PRIu64 
" established, %" PRIu64 " rejected%s",
                gsmnet->msc_ctrs->ctr[MSC_CTR_NC_SS_MT_REQUESTS].current,
                gsmnet->msc_ctrs->ctr[MSC_CTR_NC_SS_MT_ESTABLISHED].current,
                gsmnet->msc_ctrs->ctr[MSC_CTR_NC_SS_MT_REQUESTS].current

--
To view, visit https://gerrit.osmocom.org/11824
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Iae1c0b20a519ce71a21f72cea3c63694ef10adb4
Gerrit-Change-Number: 11824
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <[email protected]>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Neels Hofmeyr <[email protected]>
Gerrit-Reviewer: Pau Espin Pedrol <[email protected]>

Reply via email to