Skip to content

Commit 48908b2

Browse files
[portsync] print flags for port netlink message (#3427)
- What I did Added additional values for debug log - Why I did it Enhance debug prints with additional inof needed for offline debug
1 parent 2bff2af commit 48908b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

portsyncd/linksync.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,13 @@ void LinkSync::onMsg(int nlmsg_type, struct nl_object *obj)
140140

141141
if (type)
142142
{
143-
SWSS_LOG_NOTICE("nlmsg type:%d key:%s admin:%d oper:%d addr:%s ifindex:%d master:%d type:%s",
144-
nlmsg_type, key.c_str(), admin, oper, addrStr, ifindex, master, type);
143+
SWSS_LOG_NOTICE("nlmsg type:%d key:%s admin:%d oper:%d addr:%s ifindex:%d master:%d type:%s flags:%d",
144+
nlmsg_type, key.c_str(), admin, oper, addrStr, ifindex, master, type, flags);
145145
}
146146
else
147147
{
148-
SWSS_LOG_NOTICE("nlmsg type:%d key:%s admin:%d oper:%d addr:%s ifindex:%d master:%d",
149-
nlmsg_type, key.c_str(), admin, oper, addrStr, ifindex, master);
148+
SWSS_LOG_NOTICE("nlmsg type:%d key:%s admin:%d oper:%d addr:%s ifindex:%d master:%d flags:%d",
149+
nlmsg_type, key.c_str(), admin, oper, addrStr, ifindex, master, flags);
150150
}
151151

152152
/* teamd instances are dealt in teamsyncd */

0 commit comments

Comments
 (0)