From 4e41166c6646e007efa58cdfaf627e5af2dbcefb Mon Sep 17 00:00:00 2001 From: Andrew Geissler Date: Thu, 1 Jun 2017 07:26:39 -0500 Subject: 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 --- frup.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, -- cgit v1.2.1