osmith has uploaded this change for review. (
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. Fix it by casting
to "long unsigned int".
Related: OS#6828
Change-Id: I535d997f079dce902bbdd3eff22153201b53353f
---
M src/pcu_vty_functions.cpp
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/72/40872/1
diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp
index 09a1d77..f4f7c47 100644
--- a/src/pcu_vty_functions.cpp
+++ b/src/pcu_vty_functions.cpp
@@ -62,7 +62,7 @@
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(),
+ (unsigned int long) tbf->created_ts(), tbf->state_name(),
state_flags,
state_flags & (1 << GPRS_RLCMAC_FLAG_CCCH),
state_flags & (1 << GPRS_RLCMAC_FLAG_PACCH),
@@ -154,7 +154,7 @@
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);
+ (unsigned int long) tv_res1.tv_sec, (unsigned int 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: newchange
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I535d997f079dce902bbdd3eff22153201b53353f
Gerrit-Change-Number: 40872
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>