From 0e6b0768fd96a6683765f646e6a001c72ddf41da Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Wed, 25 Sep 2019 12:51:43 +0200 Subject: [PATCH] print PCCH hex when decoding fails --- srsue/src/stack/rrc/rrc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsue/src/stack/rrc/rrc.cc b/srsue/src/stack/rrc/rrc.cc index 156c00e25..057c25872 100644 --- a/srsue/src/stack/rrc/rrc.cc +++ b/srsue/src/stack/rrc/rrc.cc @@ -1756,7 +1756,7 @@ void rrc::process_pcch(unique_byte_buffer_t pdu) pcch_msg_s pcch_msg; asn1::bit_ref bref(pdu->msg, pdu->N_bytes); if (pcch_msg.unpack(bref) != asn1::SRSASN_SUCCESS or pcch_msg.msg.type().value != pcch_msg_type_c::types_opts::c1) { - rrc_log->error("Failed to unpack PCCH message\n"); + rrc_log->error_hex(pdu->buffer, pdu->N_bytes, "Failed to unpack PCCH message (%d B)\n", pdu->N_bytes); return; }