print the tx power, not a random character
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Tue, 10 Jun 2008 16:22:12 -0700
changeset 3882 05de3d432860
parent 3881 d3f8cf4d2c2a
child 3883 091bb8fef41f
print the tx power, not a random character
src/devices/wifi/wifi-phy.cc
--- a/src/devices/wifi/wifi-phy.cc	Tue Jun 10 15:43:52 2008 -0700
+++ b/src/devices/wifi/wifi-phy.cc	Tue Jun 10 16:22:12 2008 -0700
@@ -487,7 +487,7 @@
 void 
 WifiPhy::SendPacket (Ptr<const Packet> packet, WifiMode txMode, WifiPreamble preamble, uint8_t txPower)
 {
-  NS_LOG_FUNCTION (this << packet << txMode << preamble << txPower);
+  NS_LOG_FUNCTION (this << packet << txMode << preamble << (uint32_t)txPower);
   /* 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