RTP_Emulation: Log number of error packets
Change-Id: I685fb43ea30c83a975edd32cc24994da15940100
diff --git a/library/RTP_Emulation.ttcn b/library/RTP_Emulation.ttcn
index de2c877..5e10b3f 100644
--- a/library/RTP_Emulation.ttcn
+++ b/library/RTP_Emulation.ttcn
@@ -295,23 +295,23 @@
/* Check error counters */
if (s.num_pkts_rx_err_seq != 0) {
- setverdict(fail, "RTP packet sequence number errors occurred");
+ setverdict(fail, log2str(s.num_pkts_rx_err_seq, " RTP packet sequence number errors occurred"));
mtc.stop;
}
if (s.num_pkts_rx_err_ts != 0) {
- setverdict(fail, "RTP packet timestamp errors occurred");
+ setverdict(fail, log2str(s.num_pkts_rx_err_ts, " RTP packet timestamp errors occurred"));
mtc.stop;
}
if (s.num_pkts_rx_err_pt != 0) {
- setverdict(fail, "RTP packet payload type errors occurred");
+ setverdict(fail, log2str(s.num_pkts_rx_err_pt, " RTP packet payload type errors occurred"));
mtc.stop;
}
if (s.num_pkts_rx_err_disabled != 0) {
- setverdict(fail, "RTP packets received while RX was disabled");
+ setverdict(fail, log2str(s.num_pkts_rx_err_disabled, " RTP packets received while RX was disabled"));
mtc.stop;
}
if (s.num_pkts_rx_err_payload != 0) {
- setverdict(fail, "RTP packets with mismatching payload received");
+ setverdict(fail, log2str(s.num_pkts_rx_err_payload, " RTP packets with mismatching payload received"));
mtc.stop;
}
}