From 0e4c7cc4b5bf3826867652dd4e0e45fab04af3e2 Mon Sep 17 00:00:00 2001 From: dflynn-Nokia <60479697+dflynn-Nokia@users.noreply.github.com> Date: Sat, 19 Dec 2020 12:17:02 -0500 Subject: [PATCH] [buffermgmt] more build error fixes when compiling for armhf (32-bit) (#1559) Changed format specifiers to avoid compilation errors in arm 32-bit --- cfgmgr/buffermgrdyn.cpp | 2 +- orchagent/bufferorch.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }