lr-wpan: (fixes #2347) Ascii traces are hooked to the wrong traces
authorTommaso Pecorella <tommaso.pecorella@unifi.it>
Thu, 31 Mar 2016 23:31:50 +0200
changeset 12072 c0943e24cccc
parent 12071 a3c5fea29467
child 12073 c2f388ad2677
lr-wpan: (fixes #2347) Ascii traces are hooked to the wrong traces
RELEASE_NOTES
src/lr-wpan/helper/lr-wpan-helper.cc
--- a/RELEASE_NOTES	Thu Mar 24 20:54:02 2016 +0100
+++ b/RELEASE_NOTES	Thu Mar 31 23:31:50 2016 +0200
@@ -25,7 +25,8 @@
 
 Bugs fixed
 ----------
-- Bug 2346 - SixLowPan ConpressionThreshold can be violated 
+- Bug 2346 - SixLowPan ConpressionThreshold can be violated.
+- Bug 2347 - LrWpan Ascii traces are hooked to the wrong traces.
 
 Known issues
 ------------
--- a/src/lr-wpan/helper/lr-wpan-helper.cc	Thu Mar 24 20:54:02 2016 +0100
+++ b/src/lr-wpan/helper/lr-wpan-helper.cc	Thu Mar 31 23:31:50 2016 +0200
@@ -367,13 +367,13 @@
       // The Mac and Phy objects have the trace sources for these
       //
 
-      asciiTraceHelper.HookDefaultReceiveSinkWithoutContext<LrWpanNetDevice> (device, "MacRx", theStream);
+      asciiTraceHelper.HookDefaultReceiveSinkWithoutContext<LrWpanMac> (device->GetMac (), "MacRx", theStream);
 
       device->GetMac ()->TraceConnectWithoutContext ("MacTx", MakeBoundCallback (&AsciiLrWpanMacTransmitSinkWithoutContext, theStream));
 
-      asciiTraceHelper.HookDefaultEnqueueSinkWithoutContext<LrWpanNetDevice> (device, "MacTxEnqueue", theStream);
-      asciiTraceHelper.HookDefaultDequeueSinkWithoutContext<LrWpanNetDevice> (device, "MacTxDequeue", theStream);
-      asciiTraceHelper.HookDefaultDropSinkWithoutContext<LrWpanNetDevice> (device, "MacTxDrop", theStream);
+      asciiTraceHelper.HookDefaultEnqueueSinkWithoutContext<LrWpanMac> (device->GetMac (), "MacTxEnqueue", theStream);
+      asciiTraceHelper.HookDefaultDequeueSinkWithoutContext<LrWpanMac> (device->GetMac (), "MacTxDequeue", theStream);
+      asciiTraceHelper.HookDefaultDropSinkWithoutContext<LrWpanMac> (device->GetMac (), "MacTxDrop", theStream);
 
       return;
     }