yosemitev2:Multi-host CPU info displayed in OCP debug-card.
This implementation is going to display the processor
information in the OCP debug-card.
Tested: information frame value of processor info
displayed in the OCP debug card with multi-host
Yosemitev2 platform.
Signed-off-by: Karthikeyan Pasupathi <pkarthikeyan1509@gmail.com>
Change-Id: Iec29bae79a4c56d92184a69ea187549895f34db9
diff --git a/src/usb-dbg.cpp b/src/usb-dbg.cpp
index b886525..da3c341 100644
--- a/src/usb-dbg.cpp
+++ b/src/usb-dbg.cpp
@@ -23,6 +23,7 @@
ipmi_ret_t getNetworkData(uint8_t lan_param, char* data);
int8_t getFruData(std::string& serial, std::string& name);
int8_t sysConfig(std::vector<std::string>& data, size_t pos);
+int8_t procInfo(std::string& result, size_t pos);
bool isMultiHostPlatform();
@@ -1042,6 +1043,11 @@
{
frame_info.append(info.c_str(), 1);
}
+
+ // Processor info
+ std::string result;
+ procInfo(result, pos);
+ frame_info.append(result.c_str(), 1);
}
} // End of update frame