From 84c86268084e3a3b68bb618b88cab99bb334c915 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Fri, 1 Feb 2019 12:34:57 +0100 Subject: [PATCH] print error when RLC bearer LCID change is not successful --- lib/src/upper/rlc.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/src/upper/rlc.cc b/lib/src/upper/rlc.cc index 16af52aec..4111c5b5b 100644 --- a/lib/src/upper/rlc.cc +++ b/lib/src/upper/rlc.cc @@ -579,7 +579,12 @@ void rlc::change_lcid(uint32_t old_lcid, uint32_t new_lcid) } // erase from old position rlc_array.erase(it); - rlc_log->warning("Changed LCID of RLC bearer from %d to %d\n", old_lcid, new_lcid); + + if (valid_lcid(new_lcid) && not valid_lcid(old_lcid)) { + rlc_log->info("Successfully changed LCID of RLC bearer from %d to %d\n", old_lcid, new_lcid); + } else { + rlc_log->error("Error during LCID change of RLC bearer from %d to %d\n", old_lcid, new_lcid); + } } else { rlc_log->error("Can't change LCID of bearer %s from %d to %d. Bearer doesn't exist or new LCID already occupied.\n", rrc->get_rb_name(old_lcid).c_str(), old_lcid, new_lcid); }