wifi: Use uint16_t iso uint32_t to cast uint8_t in log statements

This commit is contained in:
Sébastien Deronne
2017-01-01 17:46:59 +01:00
parent 6a2a0ed1cc
commit d6f809a649
3 changed files with 4 additions and 4 deletions

View File

@@ -369,7 +369,7 @@ EdcaTxopN::SetWifiRemoteStationManager (Ptr<WifiRemoteStationManager> remoteMana
void
EdcaTxopN::SetTypeOfStation (TypeOfStation type)
{
NS_LOG_FUNCTION (this << (uint32_t)type);
NS_LOG_FUNCTION (this << (uint16_t)type);
m_typeOfStation = type;
}

View File

@@ -2204,8 +2204,8 @@ WifiPhy::SendPacket (Ptr<const Packet> packet, WifiTxVector txVector, MpduType m
NS_LOG_FUNCTION (this << packet << txVector.GetMode ()
<< txVector.GetMode ().GetDataRate (txVector)
<< txVector.GetPreambleType ()
<< (uint32_t)txVector.GetTxPowerLevel ()
<< (uint32_t)mpdutype);
<< (uint16_t)txVector.GetTxPowerLevel ()
<< (uint16_t)mpdutype);
/* Transmission can happen if:
* - we are syncing on a packet. It is the responsability of the
* MAC layer to avoid doing this but the PHY does nothing to

View File

@@ -1688,7 +1688,7 @@ WifiRemoteStationManager::GetNonErpBasicMode (uint32_t i) const
void
WifiRemoteStationManager::AddBasicMcs (WifiMode mcs)
{
NS_LOG_FUNCTION (this << (uint32_t)mcs.GetMcsValue ());
NS_LOG_FUNCTION (this << (uint16_t)mcs.GetMcsValue ());
for (uint32_t i = 0; i < GetNBasicMcs (); i++)
{
if (GetBasicMcs (i) == mcs)