From 2b41efaa23c1017f22d5b3664dcbcca3535c57b3 Mon Sep 17 00:00:00 2001 From: Francisco Date: Mon, 11 Oct 2021 13:19:55 +0100 Subject: [PATCH] nr,phy,gnb: enable PUSCH debug logging --- srsenb/src/phy/nr/slot_worker.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/srsenb/src/phy/nr/slot_worker.cc b/srsenb/src/phy/nr/slot_worker.cc index 00fc13f2d..fed1aa6e5 100644 --- a/srsenb/src/phy/nr/slot_worker.cc +++ b/srsenb/src/phy/nr/slot_worker.cc @@ -238,7 +238,13 @@ bool slot_worker::work_ul() std::array str; srsran_gnb_ul_pusch_info(&gnb_ul, &pusch.sch, &pusch_info.pusch_data, str.data(), (uint32_t)str.size()); - logger.info("PUSCH: %s", str.data()); + if (logger.debug.enabled()) { + std::array str_extra; + srsran_sch_cfg_nr_info(&pusch.sch, str_extra.data(), (uint32_t)str_extra.size()); + logger.info("PUSCH: %s\n%s", str.data(), str_extra.data()); + } else { + logger.info("PUSCH: %s", str.data()); + } } }