diff --git a/cfgmgr/buffermgrdyn.cpp b/cfgmgr/buffermgrdyn.cpp index 6d9a73a7a000..988edad57c10 100644 --- a/cfgmgr/buffermgrdyn.cpp +++ b/cfgmgr/buffermgrdyn.cpp @@ -229,7 +229,7 @@ string BufferMgrDynamic::parseObjectNameFromKey(const string &key, size_t pos = auto keys = tokenize(key, delimiter); if (pos >= keys.size()) { - SWSS_LOG_ERROR("Failed to fetch %lu-th sector of key %s", pos, key.c_str()); + SWSS_LOG_ERROR("Failed to fetch %zu-th sector of key %s", pos, key.c_str()); return string(); } return keys[pos]; diff --git a/orchagent/bufferorch.cpp b/orchagent/bufferorch.cpp index 4cfe35df30e8..2449dee113bf 100644 --- a/orchagent/bufferorch.cpp +++ b/orchagent/bufferorch.cpp @@ -124,7 +124,7 @@ void BufferOrch::initBufferConstants() vector fvVector; fvVector.emplace_back(make_pair("mmu_size", to_string(attr.value.u64 * 1024))); m_stateBufferMaximumValueTable.set("global", fvVector); - SWSS_LOG_NOTICE("Got maximum memory size %lu, exposing to %s|global", + SWSS_LOG_NOTICE("Got maximum memory size %" PRIx64 ", exposing to %s|global", attr.value.u64, STATE_BUFFER_MAXIMUM_VALUE_TABLE); }