aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-07-27 10:58:51 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2020-07-27 10:58:54 +0200
commit199a306d279df09d7624b9c12e3005a301c21257 (patch)
treedaa252a60603b26f8490bf550ac2a1a6dabc5652
parentc249ce2a58c6730872a2d49c83bdf4847369d209 (diff)
Transceiver: Check log level before generating burst str representation
Avoid entering the logRxBurst() function and running a long loop even if not used. Change-Id: I67408bc8643d5d97355f277c4a2007064a83ae90
-rw-r--r--Transceiver52M/Transceiver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp
index 55d0acd..c92a61b 100644
--- a/Transceiver52M/Transceiver.cpp
+++ b/Transceiver52M/Transceiver.cpp
@@ -1165,7 +1165,7 @@ bool Transceiver::driveReceiveFIFO(size_t chan)
return false; /* other errors: we want to stop the process */
}
- if (!bi.idle)
+ if (!bi.idle && log_check_level(DTRXDUL, LOGL_DEBUG))
logRxBurst(chan, &bi);
switch (mVersionTRXD[chan]) {