diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2017-06-01 07:26:39 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-06-14 07:28:22 +0000 |
commit | 4e41166c6646e007efa58cdfaf627e5af2dbcefb (patch) | |
tree | 8387cdba5d37251cfb1741dc68abe8235f28e6d0 | |
parent | 9149a772dec2b86607d31d3e411f4cc2fe8a7094 (diff) | |
download | ipmi-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.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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, |