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/mdrv2.cpp b/src/mdrv2.cpp
index 856d817..1bf2e31 100644
--- a/src/mdrv2.cpp
+++ b/src/mdrv2.cpp
@@ -831,7 +831,7 @@
memoryInfo->length, dataIn);
record["Part Number"] = positionToString(
memoryInfo->partNum, memoryInfo->length, dataIn);
- record["Attributes"] = memoryInfo->attributes;
+ record["Attributes"] = uint32_t(memoryInfo->attributes);
record["Extended Size"] = uint32_t(memoryInfo->extendedSize);
record["Configured Memory Speed"] =
uint32_t(memoryInfo->confClockSpeed);