From 22a82d7a5365a2bd54fe38a1dfb1c32e200ef17f Mon Sep 17 00:00:00 2001 From: Junchao-Mellanox Date: Tue, 17 Dec 2024 05:56:53 +0200 Subject: [PATCH] [portsync] print flags for port netlink message --- portsyncd/linksync.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/portsyncd/linksync.cpp b/portsyncd/linksync.cpp index 66cdc4df5f..44109011ba 100644 --- a/portsyncd/linksync.cpp +++ b/portsyncd/linksync.cpp @@ -188,13 +188,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); } if (!key.compare(0, MGMT_PREFIX.length(), MGMT_PREFIX))