Skip to content

Commit

Permalink
Run clang format --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
non-det-alle committed Oct 8, 2024
1 parent 2fb1e20 commit 3e633c7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions helper/lora-packet-tracker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ LoraPacketTracker::MacGwReceptionCallback(Ptr<const Packet> packet)
{
if (IsUplink(packet))
{
NS_LOG_INFO("A packet was successfully received" << " at the MAC layer of gateway "
<< Simulator::GetContext());
NS_LOG_INFO("A packet was successfully received at the MAC layer of gateway "
<< Simulator::GetContext());

// Find the received packet in the m_macPacketTracker
auto it = m_macPacketTracker.find(packet);
Expand Down
6 changes: 3 additions & 3 deletions model/building-penetration-loss.cc
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ BuildingPenetrationLoss::DoCalcRxPower(double txPowerDbm,
}
}

NS_LOG_DEBUG("Building penetration loss:" << " externalWallLoss = " << externalWallLoss
<< ", tor1 = " << tor1 << ", tor3 = " << tor3
<< ", GFH = " << gfh);
NS_LOG_DEBUG("Building penetration loss: externalWallLoss = " << externalWallLoss << ", tor1 = "
<< tor1 << ", tor3 = " << tor3
<< ", GFH = " << gfh);

// Put together all the pieces
double loss = externalWallLoss + std::max(tor1, tor3) - gfh;
Expand Down
4 changes: 2 additions & 2 deletions model/class-a-end-device-lorawan-mac.cc
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ ClassAEndDeviceLorawanMac::CloseFirstReceiveWindow()
switch (phy->GetState())
{
case EndDeviceLoraPhy::TX:
NS_ABORT_MSG("PHY was in TX mode when attempting to " << "close a receive window.");
NS_ABORT_MSG("PHY was in TX mode when attempting to close a receive window.");
break;
case EndDeviceLoraPhy::RX:
// PHY is receiving: let it finish. The Receive method will switch it back to SLEEP.
Expand Down Expand Up @@ -456,7 +456,7 @@ ClassAEndDeviceLorawanMac::GetNextClassTransmissionDelay(Time waitingTime)
!m_secondReceiveWindow.IsExpired())
{
NS_LOG_WARN(
"Attempting to send when there are receive windows:" << " Transmission postponed.");
"Attempting to send when there are receive windows: Transmission postponed.");
// Compute the duration of a single symbol for the second receive window data rate
double tSym = pow(2, GetSfFromDataRate(GetSecondReceiveWindowDataRate())) /
GetBandwidthFromDataRate(GetSecondReceiveWindowDataRate());
Expand Down
6 changes: 3 additions & 3 deletions model/end-device-lorawan-mac.cc
Original file line number Diff line number Diff line change
Expand Up @@ -756,9 +756,9 @@ EndDeviceLorawanMac::OnLinkAdrReq(uint8_t dataRate,
txPowerOk = false;
}

NS_LOG_DEBUG("Finished checking. " << "ChannelMaskOk: " << channelMaskOk << ", "
<< "DataRateOk: " << dataRateOk << ", "
<< "txPowerOk: " << txPowerOk);
NS_LOG_DEBUG("Finished checking. ChannelMaskOk: " << channelMaskOk << ", "
<< "DataRateOk: " << dataRateOk << ", "
<< "txPowerOk: " << txPowerOk);

// If all checks are successful, set parameters up
//////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion model/simple-gateway-lora-phy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ SimpleGatewayLoraPhy::StartReceive(Ptr<Packet> packet,
}
else // We have sufficient sensitivity to start receiving
{
NS_LOG_INFO("Scheduling reception of a packet, " << "occupying one demodulator");
NS_LOG_INFO("Scheduling reception of a packet, occupying one demodulator");

// Block this resource
currentPath->LockOnEvent(event);
Expand Down

0 comments on commit 3e633c7

Please sign in to comment.