fixeria has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38208?usp=email )
Change subject: library: as_pfcp_ignore(): log SeqNr of received PDUs
......................................................................
library: as_pfcp_ignore(): log SeqNr of received PDUs
Printing the PFCP PDU template ('?' by default) is not very informative
when reading logs. Printing the message type of the received PDU is
not informative either, because message types are defined as numbers
in PFCP_Types.ttcn. Printing the whole PDU is way too verbose, and
would be redundant given that the PFCPEM component already does print
all received PDUs. Let's print the sequence number.
Change-Id: I803ff46def4ae0182310bc01e753fe0c05112836
---
M library/PFCP_Emulation.ttcn
1 file changed, 4 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/08/38208/1
diff --git a/library/PFCP_Emulation.ttcn b/library/PFCP_Emulation.ttcn
index 87deffc..8e79631 100644
--- a/library/PFCP_Emulation.ttcn
+++ b/library/PFCP_Emulation.ttcn
@@ -374,8 +374,10 @@
altstep as_pfcp_ignore(PFCPEM_PT pt, template PDU_PFCP pfcp_expect := ?)
{
- [] pt.receive(pfcp_expect) {
- log("Ignoring ", pfcp_expect);
+ var PDU_PFCP pdu;
+
+ [] pt.receive(pfcp_expect) -> value pdu {
+ log("Ignoring PFCP PDU (SeqNr := ", pdu.sequence_number, ")");
repeat;
}
}
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38208?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I803ff46def4ae0182310bc01e753fe0c05112836
Gerrit-Change-Number: 38208
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>