From 2cd81667c3b60874c975df311104c686392378bb Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Tue, 19 Nov 2024 11:02:07 +0100 Subject: [PATCH] phy: log in info RSRP, EPRE and detection metric --- .../phy/upper/channel_processors/pucch/formatters.h | 4 ++-- .../phy/upper/channel_state_information_formatters.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/srsran/phy/upper/channel_processors/pucch/formatters.h b/include/srsran/phy/upper/channel_processors/pucch/formatters.h index b5f51d793a..235dd5b94b 100644 --- a/include/srsran/phy/upper/channel_processors/pucch/formatters.h +++ b/include/srsran/phy/upper/channel_processors/pucch/formatters.h @@ -241,10 +241,10 @@ struct formatter { } if (result.detection_metric.has_value()) { - helper.format_if_verbose(ctx, "detection_metric={:.1f}", result.detection_metric.value()); + helper.format_always(ctx, "metric={:.1f}", result.detection_metric.value()); } - helper.format_if_verbose(ctx, result.csi); + helper.format_always(ctx, result.csi); return ctx.out(); } }; diff --git a/include/srsran/phy/upper/channel_state_information_formatters.h b/include/srsran/phy/upper/channel_state_information_formatters.h index 243ce75f6f..c4b9c3d03d 100644 --- a/include/srsran/phy/upper/channel_state_information_formatters.h +++ b/include/srsran/phy/upper/channel_state_information_formatters.h @@ -69,14 +69,14 @@ struct formatter { // Print the measurements that are present. if (epre_dB.has_value()) { - helper.format_if_verbose(ctx, "epre={:+.1f}dB", epre_dB.value()); + helper.format_always(ctx, "epre={:+.1f}dB", epre_dB.value()); } else { - helper.format_if_verbose(ctx, "epre=na"); + helper.format_always(ctx, "epre=na"); } if (rsrp_dB.has_value()) { - helper.format_if_verbose(ctx, "rsrp={:+.1f}dB", rsrp_dB.value()); + helper.format_always(ctx, "rsrp={:+.1f}dB", rsrp_dB.value()); } else { - helper.format_if_verbose(ctx, "rsrp=na"); + helper.format_always(ctx, "rsrp=na"); } if (sinr_dB.has_value()) { helper.format_if_verbose(ctx, "sinr={:+.1f}dB", sinr_dB.value());