Home
last modified time | relevance | path

Searched refs:getNumberString (Results 1 – 12 of 12) sorted by relevance

/openbmc/phosphor-logging/extensions/openpower-pels/
H A Dextended_user_header.cpp186 jsonInsert(json, pv::sectionVer, getNumberString("%d", _header.version), 1); in getJSON()
187 jsonInsert(json, pv::subSection, getNumberString("%d", _header.subType), 1); in getJSON()
196 getNumberString("%02X", _refTime.month) + '/' + in getJSON()
197 getNumberString("%02X", _refTime.day) + '/' + in getJSON()
198 getNumberString("%02X", _refTime.yearMSB) + in getJSON()
199 getNumberString("%02X", _refTime.yearLSB) + ' ' + in getJSON()
200 getNumberString("%02X", _refTime.hour) + ':' + in getJSON()
201 getNumberString("%02X", _refTime.minutes) + ':' + in getJSON()
202 getNumberString("%02X", _refTime.seconds), in getJSON()
204 jsonInsert(json, "Symptom Id Len", getNumberString("%d", _symptomIDSize), in getJSON()
H A Dprivate_header.cpp101 std::string creator = getNumberString("%c", _creatorID); in getJSON()
108 jsonInsert(ph, pv::sectionVer, getNumberString("%d", privateHeaderVersion), in getJSON()
110 jsonInsert(ph, pv::subSection, getNumberString("%d", _header.subType), 1); in getJSON()
117 jsonInsert(ph, "Platform Log Id", getNumberString("0x%X", _plid), 1); in getJSON()
118 jsonInsert(ph, "Entry Id", getNumberString("0x%X", _id), 1); in getJSON()
H A Duser_data_json.cpp262 std::string module = getNumberString("%c", tolower(creatorID)) + in getPythonJSON()
263 getNumberString("%04x", componentID); in getPythonJSON()
400 std::string subsystem = getNumberString("%c", tolower(creatorID)); in getJSON()
401 std::string component = getNumberString("%04x", componentID); in getJSON()
404 if (pv::creatorIDs.at(getNumberString("%c", creatorID)) == "BMC" && in getJSON()
H A Dfailing_mtms.cpp96 jsonInsert(json, pv::sectionVer, getNumberString("%d", _header.version), 1); in getJSON()
97 jsonInsert(json, pv::subSection, getNumberString("%d", _header.subType), 1); in getJSON()
H A Dsrc.cpp131 std::string module = getNumberString("%c", tolower(creatorID)) + "src"; in getPythonJSON()
521 auto srcValue = getNumberString( in getErrorDetails()
578 message.append(getNumberString( in getErrorMessage()
693 mruId.append(", " + getNumberString("%08X", element.id)); in getCallouts()
697 mruId.append(getNumberString("%08X", element.id)); in getCallouts()
717 jsonInsert(ps, pv::sectionVer, getNumberString("%d", _header.version), 1); in getJSON()
721 jsonInsert(ps, "SRC Version", getNumberString("0x%02X", _version), 1); in getJSON()
738 ccinString = getNumberString("%04X", ccin); in getJSON()
770 jsonInsert(ps, "Valid Word Count", getNumberString("0x%02X", _wordCount), in getJSON()
793 getNumberString("%08X", _hexData[getWordIndexFromWordNum(i)]); in getJSON()
[all …]
H A Djson_utils.hpp70 std::string getNumberString(const char* format, T number) in getNumberString() function
H A Duser_header.cpp282 jsonInsert(uh, pv::sectionVer, getNumberString("%d", userHeaderVersion), 1); in getJSON()
283 jsonInsert(uh, pv::subSection, getNumberString("%d", _header.subType), 1); in getJSON()
H A Djson_utils.cpp293 auto id = getNumberString("%04X", compID); in lookupComponentName()
340 name = getNumberString("0x%04X", compID); in getComponentName()
H A Dpel.cpp395 getNumberString("%d", section.header().version), 1); in printSectionInJSON()
397 getNumberString("%d", section.header().subType), 1); in printSectionInJSON()
399 getNumberString("0x%X", section.header().componentID), in printSectionInJSON()
H A Dmanager.cpp213 ad.add("PLID", getNumberString("0x%08X", pel->plid())); in addPEL()
530 data.add("BAD_ID", getNumberString("0x%08X", pelID)); in hostReject()
751 str += getNumberString("%08X", value); in getEventId()
/openbmc/phosphor-logging/test/openpower-pels/
H A Djson_utils_test.cpp40 EXPECT_EQ(getNumberString("%d", number), "123"); in TEST()
41 EXPECT_EQ(getNumberString("%03X", number), "07B"); in TEST()
42 EXPECT_EQ(getNumberString("0x%X", number), "0x7B"); in TEST()
43 EXPECT_THROW(getNumberString("%123", number), std::invalid_argument); in TEST()
/openbmc/phosphor-logging/extensions/openpower-pels/tools/
H A Dpeltool.cpp382 getNumberString("0x%X", pel.privateHeader().id()) + in genPELJSON()
406 getNumberString("0x%X", pel.privateHeader().plid()), 2); in genPELJSON()
410 getNumberString("%c", pel.privateHeader().creatorID()); in genPELJSON()
756 << getNumberString("%d", count) << "\n}\n"; in printPELCount()