Skip to content

Commit

Permalink
[portsync] print flags for port netlink message (#3427)
Browse files Browse the repository at this point in the history
- What I did
Added additional values for debug log

- Why I did it
Enhance debug prints with additional inof needed for offline debug
  • Loading branch information
Junchao-Mellanox authored Feb 5, 2025
1 parent 2bff2af commit 48908b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions portsyncd/linksync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ void LinkSync::onMsg(int nlmsg_type, struct nl_object *obj)

if (type)
{
SWSS_LOG_NOTICE("nlmsg type:%d key:%s admin:%d oper:%d addr:%s ifindex:%d master:%d type:%s",
nlmsg_type, key.c_str(), admin, oper, addrStr, ifindex, master, type);
SWSS_LOG_NOTICE("nlmsg type:%d key:%s admin:%d oper:%d addr:%s ifindex:%d master:%d type:%s flags:%d",
nlmsg_type, key.c_str(), admin, oper, addrStr, ifindex, master, type, flags);
}
else
{
SWSS_LOG_NOTICE("nlmsg type:%d key:%s admin:%d oper:%d addr:%s ifindex:%d master:%d",
nlmsg_type, key.c_str(), admin, oper, addrStr, ifindex, master);
SWSS_LOG_NOTICE("nlmsg type:%d key:%s admin:%d oper:%d addr:%s ifindex:%d master:%d flags:%d",
nlmsg_type, key.c_str(), admin, oper, addrStr, ifindex, master, flags);
}

/* teamd instances are dealt in teamsyncd */
Expand Down

0 comments on commit 48908b2

Please sign in to comment.