From b631106612cd6ce071798357fbbe991718577c1d Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Tue, 24 Sep 2019 14:49:03 +0200 Subject: [PATCH] always print RF errors to stdout --- srsue/src/metrics_stdout.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/srsue/src/metrics_stdout.cc b/srsue/src/metrics_stdout.cc index 6317359df..d36021963 100644 --- a/srsue/src/metrics_stdout.cc +++ b/srsue/src/metrics_stdout.cc @@ -60,8 +60,18 @@ void metrics_stdout::toggle_print(bool b) void metrics_stdout::set_metrics(ue_metrics_t &metrics, const uint32_t period_usec) { - if(!do_print || ue == NULL) + if (ue == NULL) { return; + } + + // always print RF error + if (metrics.rf.rf_error) { + printf("RF status: O=%d, U=%d, L=%d\n", metrics.rf.rf_o, metrics.rf.rf_u, metrics.rf.rf_l); + } + + if (!do_print) { + return; + } if (metrics.stack.rrc.state != RRC_STATE_CONNECTED) { cout << "--- disconnected ---" << endl;