summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Geissler <andrewg@us.ibm.com>2017-06-01 07:26:39 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-06-14 07:28:22 +0000
commit4e41166c6646e007efa58cdfaf627e5af2dbcefb (patch)
tree8387cdba5d37251cfb1741dc68abe8235f28e6d0
parent9149a772dec2b86607d31d3e411f4cc2fe8a7094 (diff)
downloadipmi-fru-parser-4e41166c6646e007efa58cdfaf627e5af2dbcefb.tar.gz
ipmi-fru-parser-4e41166c6646e007efa58cdfaf627e5af2dbcefb.zip
Remove debug printf of VPD keys
The output from these printfs clog up the journal. If needed then we should move them to phosphor logging and make debug. Change-Id: I26600a0d13f834da1c35d914285b13a3bc2eea4a Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
-rw-r--r--frup.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/frup.cpp b/frup.cpp
index f6ff8b4..7251492 100644
--- a/frup.cpp
+++ b/frup.cpp
@@ -762,18 +762,21 @@ void _append_to_dict (uint8_t vpd_key_id,
{
strncpy(bin_in_ascii, "0x", 2);
}
-
+#if IPMI_FRU_PARSER_DEBUG
printf ("_append_to_dict: VPD Key = [%s] : Type Code = [BINARY] :"
" Len = [%d] : Val = [%s]\n",
vpd_key_names [vpd_key_id], vpd_val_len, bin_in_ascii);
+#endif
info[vpd_key_id] = std::make_pair(vpd_key_names[vpd_key_id],
bin_in_ascii);
break;
case 3:
+#if IPMI_FRU_PARSER_DEBUG
printf ("_append_to_dict: VPD Key = [%s] : Type Code=[ASCII+Latin]"
" : Len = [%d] : Val = [%s]\n",
vpd_key_names [vpd_key_id], vpd_val_len, &vpd_key_val[1]);
+#endif
info[vpd_key_id] = std::make_pair(
vpd_key_names[vpd_key_id],
std::string(vpd_key_val + 1,
OpenPOWER on IntegriCloud