Skip to content

Commit

Permalink
[buffermgmt] more build error fixes when compiling for armhf (32-bit) (
Browse files Browse the repository at this point in the history
…sonic-net#1559)

Changed format specifiers to avoid compilation errors in arm 32-bit
  • Loading branch information
dflynn-Nokia authored Dec 19, 2020
1 parent 3195b8f commit 0e4c7cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cfgmgr/buffermgrdyn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion orchagent/bufferorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ void BufferOrch::initBufferConstants()
vector<FieldValueTuple> 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);
}

Expand Down

0 comments on commit 0e4c7cc

Please sign in to comment.