From dadff1a9472c03b8c0ae80921c574c7c04d1e593 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Tue, 12 Jan 2021 11:47:40 +0100 Subject: [PATCH] pdu: default initialize pdu members with MAC log MAC PDUs are default logged using the MAC log. So this gives hex prints, etc. without having to manually set the logger for each PDU. --- lib/include/srslte/mac/pdu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/include/srslte/mac/pdu.h b/lib/include/srslte/mac/pdu.h index e4d4d6800..6fe2d082e 100644 --- a/lib/include/srslte/mac/pdu.h +++ b/lib/include/srslte/mac/pdu.h @@ -456,7 +456,7 @@ private: class rar_pdu : public pdu { public: - rar_pdu(uint32_t max_rars = 16, srslte::log_ref log_ = {}); + rar_pdu(uint32_t max_rars = 16, srslte::log_ref log_ = srslte::logmap::get("MAC")); void set_backoff(uint8_t bi); bool has_backoff();