SW538090: PEL: Fix for pel commit time issue
In PEL commit time logic, commit yearMSB was wrongly interpreted
as created time yearMSB.
Signed-off-by: Sumit Kumar <sumit_kumar@in.ibm.com>
Change-Id: I27285fa5d65f4fab69090153fdf072bf41133d95
diff --git a/extensions/openpower-pels/private_header.cpp b/extensions/openpower-pels/private_header.cpp
index 6555f98..31e0f61 100644
--- a/extensions/openpower-pels/private_header.cpp
+++ b/extensions/openpower-pels/private_header.cpp
@@ -93,7 +93,7 @@
std::string phCreateTStr(tmpPhVal);
sprintf(tmpPhVal, "%02X/%02X/%02X%02X %02X:%02X:%02X",
_commitTimestamp.month, _commitTimestamp.day,
- _createTimestamp.yearMSB, _commitTimestamp.yearLSB,
+ _commitTimestamp.yearMSB, _commitTimestamp.yearLSB,
_commitTimestamp.hour, _commitTimestamp.minutes,
_commitTimestamp.seconds);
std::string phCommitTStr(tmpPhVal);