aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2016-03-25 18:20:28 +0300
committerTom Tsou <tom.tsou@ettus.com>2016-06-22 14:28:22 -0700
commit58e9591f9e491335f2be7099b38b4c4b828c2ad4 (patch)
treed18f5578ad8dfb93ffd520b02ae4b1afee49c25e
parent19174f581bcfe09e84cbfe60d7b3240b9c56989c (diff)
transceiver: Log channel number in DEBUG output of demoded bursts.
Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
-rw-r--r--Transceiver52M/Transceiver.cpp5
-rw-r--r--Transceiver52M/Transceiver.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp
index 23eea23..c7f484b 100644
--- a/Transceiver52M/Transceiver.cpp
+++ b/Transceiver52M/Transceiver.cpp
@@ -912,10 +912,11 @@ void Transceiver::driveReceiveRadio()
}
}
-void Transceiver::logRxBurst(SoftVector *burst, GSM::Time time, double dbm,
+void Transceiver::logRxBurst(size_t chan, SoftVector *burst, GSM::Time time, double dbm,
double rssi, double noise, double toa)
{
LOG(DEBUG) << std::fixed << std::right
+ << " chan: " << chan
<< " time: " << time
<< " RSSI: " << std::setw(5) << std::setprecision(1) << rssi
<< "dBFS/" << std::setw(6) << -dbm << "dBm"
@@ -948,7 +949,7 @@ void Transceiver::driveReceiveFIFO(size_t chan)
nbits = gSlotLen * 3;
dBm = RSSI + rssiOffset;
- logRxBurst(rxBurst, burstTime, dBm, RSSI, noise, TOA);
+ logRxBurst(chan, rxBurst, burstTime, dBm, RSSI, noise, TOA);
TOAint = (int) (TOA * 256.0 + 0.5); // round to closest integer
diff --git a/Transceiver52M/Transceiver.h b/Transceiver52M/Transceiver.h
index 4373dc7..99db34d 100644
--- a/Transceiver52M/Transceiver.h
+++ b/Transceiver52M/Transceiver.h
@@ -276,7 +276,7 @@ protected:
/** set priority on current thread */
void setPriority(float prio = 0.5) { mRadioInterface->setPriority(prio); }
- void logRxBurst(SoftVector *burst, GSM::Time time, double dbm,
+ void logRxBurst(size_t chan, SoftVector *burst, GSM::Time time, double dbm,
double rssi, double noise, double toa);
};