mirror of
https://github.com/espressif/openthread.git
synced 2026-08-02 17:17:45 +00:00
[mle] enhance the route table log message (#2780)
This commit is contained in:
committed by
Jonathan Hui
parent
674757aa44
commit
45125cacc5
@@ -1482,13 +1482,15 @@ void MleRouter::UpdateRoutes(const RouteTlv &aRoute, uint8_t aRouterId)
|
||||
|
||||
#if (OPENTHREAD_CONFIG_LOG_MLE && (OPENTHREAD_CONFIG_LOG_LEVEL >= OT_LOG_LEVEL_INFO))
|
||||
|
||||
otLogInfoMle(GetInstance(), "Route table updated");
|
||||
|
||||
for (RouterTable::Iterator iter(GetInstance()); !iter.IsDone(); iter.Advance())
|
||||
{
|
||||
Router &router = *iter.GetRouter();
|
||||
|
||||
otLogInfoMle(GetInstance(), "%x: %x %d %d %d %d", router.GetRloc16(), GetRloc16(router.GetNextHop()),
|
||||
router.GetCost(), mRouterTable.GetLinkCost(router), router.GetLinkInfo().GetLinkQuality(),
|
||||
router.GetLinkQualityOut());
|
||||
otLogInfoMle(GetInstance(), "%x -> %x, cost:%d %d, lqin:%d, lqout:%d", router.GetRloc16(),
|
||||
GetRloc16(router.GetNextHop()), router.GetCost(), mRouterTable.GetLinkCost(router),
|
||||
router.GetLinkInfo().GetLinkQuality(), router.GetLinkQualityOut());
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user