From 8604dad16c0213a18172630b093b05c84dca1554 Mon Sep 17 00:00:00 2001 From: Tommaso Pecorella Date: Fri, 2 May 2014 08:47:44 +0200 Subject: [PATCH] lr-wpan ascii trace fix --- src/lr-wpan/helper/lr-wpan-helper.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lr-wpan/helper/lr-wpan-helper.cc b/src/lr-wpan/helper/lr-wpan-helper.cc index 396c06cd0..3d0da1bca 100644 --- a/src/lr-wpan/helper/lr-wpan-helper.cc +++ b/src/lr-wpan/helper/lr-wpan-helper.cc @@ -325,8 +325,10 @@ LrWpanHelper::EnableAsciiInternal ( oss.str (""); oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/Mac/MacRx"; - device->GetMac ()->TraceConnectWithoutContext ("MacRx", MakeBoundCallback (&AsciiLrWpanMacTransmitSinkWithoutContext, theStream)); device->GetMac ()->TraceConnectWithoutContext ("MacRx", MakeBoundCallback (&AsciiLrWpanMacReceiveSinkWithoutContext, theStream)); + oss.str (""); + oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/Mac/MacTx"; + device->GetMac ()->TraceConnectWithoutContext ("MacTx", MakeBoundCallback (&AsciiLrWpanMacTransmitSinkWithoutContext, theStream)); return; } @@ -346,6 +348,8 @@ LrWpanHelper::EnableAsciiInternal ( oss.str (""); oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/Mac/MacRx"; device->GetMac ()->TraceConnect ("MacRx", oss.str (), MakeBoundCallback (&AsciiLrWpanMacReceiveSinkWithContext, stream)); + oss.str (""); + oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/Mac/MacTx"; device->GetMac ()->TraceConnect ("MacTx", oss.str (), MakeBoundCallback (&AsciiLrWpanMacTransmitSinkWithContext, stream)); }