commit | 036374a29d4192367f1a3fed2f074bde52b82fc6 | [log] [tgz] |
---|---|---|
author | George Liu <liuxiwei@inspur.com> | Thu Jun 15 08:47:46 2023 +0800 |
committer | George Liu <liuxiwei@inspur.com> | Wed Jun 28 11:27:36 2023 +0800 |
tree | 5b869d7fe2478962a22af75bcbe64b451bd85763 | |
parent | 132d037edfeedfc74e97d51358dbd41db0f8fdf3 [diff] [blame] |
Change the byte of the MemoryAttributes attribute to the size type We prefer to use size_t type instead of byte type in PDI[1] [1] https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/63799 Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I211a7cd553338995170407fa583d8926a6c98f53
diff --git a/src/dimm.cpp b/src/dimm.cpp index c84bc51..72f5ed3 100644 --- a/src/dimm.cpp +++ b/src/dimm.cpp
@@ -319,7 +319,7 @@ LocationCode::locationCode(value); } -uint8_t Dimm::memoryAttributes(uint8_t value) +size_t Dimm::memoryAttributes(size_t value) { return sdbusplus::server::xyz::openbmc_project::inventory::item::Dimm:: memoryAttributes(value);