pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-pcu/+/40872?usp=email )

Change subject: src/pcu_vty_functions: fix error on debian 13 i386
......................................................................

src/pcu_vty_functions: fix error on debian 13 i386

In Debian 13 armv7l, time_t and suseconds_t are "long long int" instead
of "long unsigned int" as seen on x86_64 and aarch64.

Related: OS#6828
Change-Id: I535d997f079dce902bbdd3eff22153201b53353f
---
M src/pcu_vty_functions.cpp
1 file changed, 4 insertions(+), 4 deletions(-)

Approvals:
  pespin: Looks good to me, approved
  fixeria: Looks good to me, but someone else must approve
  Jenkins Builder: Verified




diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp
index 09a1d77..c4b8a26 100644
--- a/src/pcu_vty_functions.cpp
+++ b/src/pcu_vty_functions.cpp
@@ -61,8 +61,8 @@
                tbf->ta(),
                tbf->direction == GPRS_RLCMAC_UL_TBF ? "UL" : "DL",
                tbf->imsi(), VTY_NEWLINE);
-       vty_out(vty, " created=%lu state=%s flags=%08x [CCCH:%u, PACCH:%u] 
1st_cTS=%" PRId8 " ctrl_TS=%d MS_CLASS=%d/%d%s",
-               tbf->created_ts(), tbf->state_name(),
+       vty_out(vty, " created=%llu state=%s flags=%08x [CCCH:%u, PACCH:%u] 
1st_cTS=%" PRId8 " ctrl_TS=%d MS_CLASS=%d/%d%s",
+               (unsigned long long) tbf->created_ts(), tbf->state_name(),
                state_flags,
                state_flags & (1 << GPRS_RLCMAC_FLAG_CCCH),
                state_flags & (1 << GPRS_RLCMAC_FLAG_PACCH),
@@ -153,8 +153,8 @@
                osmo_gettimeofday(&tv_now, NULL);
                timersub(&tv_now, &ms->tv_idle_start, &tv_res1);
                osmo_timer_remaining(&ms->release_timer, &tv_now, &tv_res2);
-               vty_out(vty, "  State:                  IDLE for %lus, release 
in %lus%s",
-                       tv_res1.tv_sec, tv_res2.tv_sec, VTY_NEWLINE);
+               vty_out(vty, "  State:                  IDLE for %llus, release 
in %llus%s",
+                       (unsigned long long) tv_res1.tv_sec, (unsigned long 
long) tv_res2.tv_sec, VTY_NEWLINE);
        } else {
                vty_out(vty, "  State:                  ACTIVE%s", VTY_NEWLINE);
        }

--
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/40872?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I535d997f079dce902bbdd3eff22153201b53353f
Gerrit-Change-Number: 40872
Gerrit-PatchSet: 3
Gerrit-Owner: osmith <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-CC: lynxis lazus <[email protected]>

Reply via email to