From ef8050204788b5713e32d0dc06b89cd964acdcdc Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Sun, 29 Mar 2020 15:21:22 +0200 Subject: [PATCH] nas: print attach attempts on console --- srsue/src/stack/upper/nas.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsue/src/stack/upper/nas.cc b/srsue/src/stack/upper/nas.cc index 168cd0a23..585eadc13 100644 --- a/srsue/src/stack/upper/nas.cc +++ b/srsue/src/stack/upper/nas.cc @@ -206,7 +206,6 @@ srslte::proc_outcome_t nas::rrc_connect_proc::react(attach_timeout event) } if (nas_ptr->state == EMM_STATE_DEREGISTERED) { ProcError("Timeout or received attach reject while trying to attach\n"); - nas_ptr->nas_log->console("Failed to Attach\n"); } return proc_outcome_t::error; } @@ -341,6 +340,7 @@ void nas::timer_expired(uint32_t timeout_id) // Section 5.5.1.2.6 case c) attach_attempt_counter++; + nas_log->console("Attach failed (attempt %d/%d)\n",attach_attempt_counter, max_attach_attempts); if (attach_attempt_counter < max_attach_attempts) { nas_log->info("Timer T3410 expired after attach attempt %d/%d: starting T3411\n", attach_attempt_counter,