Support Build date in IPMI Board FRU format
Resolves openbmc/openbmc#1533
Change-Id: I9269cd24ec11a4a43657541c529e28a756f76c48
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/frup.cpp b/frup.cpp
index 7251492..b7da386 100644
--- a/frup.cpp
+++ b/frup.cpp
@@ -876,13 +876,14 @@
OPENBMC_VPD_KEY_CUSTOM_FIELDS_MAX);
/* Populate VPD Table */
- for (i=OPENBMC_VPD_KEY_BOARD_MFR; i<=OPENBMC_VPD_KEY_BOARD_MAX; i++)
+ for (i=OPENBMC_VPD_KEY_BOARD_MFG_DATE;
+ i<=OPENBMC_VPD_KEY_BOARD_MAX; i++)
{
if (i==OPENBMC_VPD_KEY_BOARD_MFG_DATE)
{
_to_time_str (mfg_date_time, timestr, OPENBMC_VPD_VAL_LEN);
#if IPMI_FRU_PARSER_DEBUG
- printf ("Board : Appending [%s] = [%d]\n",
+ printf ("Board : Appending [%s] = [%s]\n",
vpd_key_names[i], timestr);
#endif
info[i] = std::make_pair(vpd_key_names[i],