diff options
author | George Liu <liuxiwei@inspur.com> | 2023-06-15 03:53:11 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2023-06-21 23:50:33 +0300 |
commit | 6995c1ce42d5bc2d223af7d3b2f3cae613d3b231 (patch) | |
tree | a52a90ac0b6b00b36880ca7ced53f66a4bcbc854 /redfish-core/lib/memory.hpp | |
parent | 3d30708fb65e40cd28da601b3e91a527a8862e15 (diff) | |
download | bmcweb-6995c1ce42d5bc2d223af7d3b2f3cae613d3b231.tar.xz |
Change the byte of the MemoryAttributes attribute to the size type
There is a patch [1] about changing the byte type of the
MemoryAttributes attribute to size_t, so we need to update the
relevant code in bmcweb synchronously.
[1] https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/63799
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I6fca731956750cdf8f749f963bbc12137fec7796
Diffstat (limited to 'redfish-core/lib/memory.hpp')
-rw-r--r-- | redfish-core/lib/memory.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/redfish-core/lib/memory.hpp b/redfish-core/lib/memory.hpp index 6c970db5bb..54b4cca590 100644 --- a/redfish-core/lib/memory.hpp +++ b/redfish-core/lib/memory.hpp @@ -414,7 +414,7 @@ inline void const std::string* ecc = nullptr; const std::string* formFactor = nullptr; const std::vector<uint16_t>* allowedSpeedsMT = nullptr; - const uint8_t* memoryAttributes = nullptr; + const size_t* memoryAttributes = nullptr; const uint16_t* memoryConfiguredSpeedInMhz = nullptr; const std::string* memoryType = nullptr; const std::uint8_t* channel = nullptr; @@ -531,8 +531,7 @@ inline void if (memoryAttributes != nullptr) { - asyncResp->res.jsonValue[jsonPtr]["RankCount"] = - static_cast<uint64_t>(*memoryAttributes); + asyncResp->res.jsonValue[jsonPtr]["RankCount"] = *memoryAttributes; } if (memoryConfiguredSpeedInMhz != nullptr) |