summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Joseph <tomjoseph@in.ibm.com>2017-08-22 18:16:33 +0530
committerPatrick Williams <patrick@stwcx.xyz>2017-08-23 20:06:40 +0000
commit2796bf909d81dbc93e823c57b9083dd0e19b0c27 (patch)
treeb2c2ef540fb8656eba6fbc2e1075af9e76fb9208
parent05261aa517e2fc1fb8599a231accab632ff31d90 (diff)
downloadipmi-fru-parser-2796bf909d81dbc93e823c57b9083dd0e19b0c27.zip
ipmi-fru-parser-2796bf909d81dbc93e823c57b9083dd0e19b0c27.tar.gz
Support Build date in IPMI Board FRU format
Resolves openbmc/openbmc#1533 Change-Id: I9269cd24ec11a4a43657541c529e28a756f76c48 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
-rw-r--r--frup.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/frup.cpp b/frup.cpp
index 7251492..b7da386 100644
--- a/frup.cpp
+++ b/frup.cpp
@@ -876,13 +876,14 @@ int parse_fru_area (const uint8_t area, const void* msgbuf,
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],
OpenPOWER on IntegriCloud