/openbmc/phosphor-user-manager/test/ |
H A D | ldap_config_test.cpp | 40 tlsCACertFile = tlsCacertFilePath.filename().c_str(); in SetUp() 42 tlsCertFile = tlsCertFilePath.filename().c_str(); in SetUp() 45 ldapConfFile = confFilePath.filename().c_str(); in SetUp() 116 auto configFilePath = std::string(dir.c_str()) + "/" + ldapConfFile; in TEST_F() 117 auto tlsCACertFilePath = std::string(dir.c_str()) + "/" + tlsCACertFile; in TEST_F() 118 auto tlsCertFilePath = std::string(dir.c_str()) + "/" + tlsCertFile; in TEST_F() 119 auto dbusPersistentFilePath = std::string(dir.c_str()); in TEST_F() 126 MockConfigMgr manager(bus, LDAP_CONFIG_ROOT, configFilePath.c_str(), in TEST_F() 127 dbusPersistentFilePath.c_str(), in TEST_F() 128 tlsCACertFilePath.c_str(), tlsCertFilePath.c_str()); in TEST_F() [all …]
|
H A D | utils_test.cpp | 27 EXPECT_EQ(true, isValidLDAPURI(ipAddress.c_str(), ldapScheme)); in TEST_F() 30 EXPECT_EQ(true, isValidLDAPURI(ipAddress.c_str(), ldapScheme)); in TEST_F() 33 EXPECT_EQ(false, isValidLDAPURI(ipAddress.c_str(), ldapScheme)); in TEST_F() 36 EXPECT_EQ(false, isValidLDAPURI(ipAddress.c_str(), ldapScheme)); in TEST_F() 39 EXPECT_EQ(false, isValidLDAPURI(ipAddress.c_str(), ldapScheme)); in TEST_F() 42 EXPECT_EQ(false, isValidLDAPURI(ipAddress.c_str(), ldapScheme)); in TEST_F() 45 EXPECT_EQ(true, isValidLDAPURI(ipAddress.c_str(), ldapsScheme)); in TEST_F() 48 EXPECT_EQ(false, isValidLDAPURI(ipAddress.c_str(), ldapsScheme)); in TEST_F() 51 EXPECT_EQ(true, isValidLDAPURI(ipAddress.c_str(), ldapsScheme)); in TEST_F() 54 EXPECT_EQ(false, isValidLDAPURI(ipAddress.c_str(), ldapsScheme)); in TEST_F() [all …]
|
/openbmc/phosphor-user-manager/phosphor-ldap-config/ |
H A D | ldap_config_mgr.cpp | 58 method.append(service.c_str(), "replace"); in restartService() 74 method.append(service.c_str(), "replace"); in stopService() 105 Argument::ARGUMENT_VALUE(ldapServerURI.c_str())); in createConfig() 108 if (secureLDAP && !fs::exists(tlsCacertFile.c_str())) in createConfig() 120 Argument::ARGUMENT_VALUE(ldapBindDN.c_str())); in createConfig() 128 Argument::ARGUMENT_VALUE(ldapBaseDN.c_str())); in createConfig() 143 bus, objPath.c_str(), configFilePath.c_str(), tlsCacertFile.c_str(), in createConfig() 144 tlsCertFile.c_str(), secureLDAP, ldapServerURI, ldapBindDN, in createConfig() 155 bus, objPath.c_str(), configFilePath.c_str(), tlsCacertFile.c_str(), in createConfig() 156 tlsCertFile.c_str(), secureLDAP, ldapServerURI, ldapBindDN, in createConfig() [all …]
|
/openbmc/phosphor-ipmi-flash/bmc/ |
H A D | general_systemd.cpp | 41 triggerService.c_str(), job->c_str()); in trigger() 64 triggerService.c_str(), mode.c_str(), job->c_str()); in trigger() 74 triggerService.c_str(), mode.c_str(), e.what()); in trigger() 87 auto cancel_req = bus.new_method_call(systemdService, job->c_str(), in abort() 92 std::fprintf(stderr, "Canceled %s: %s\n", triggerService.c_str(), in abort() 93 job->c_str()); in abort() 98 triggerService.c_str(), job->c_str(), ex.what()); in abort() 116 std::fprintf(stderr, "No running job %s\n", triggerService.c_str()); in match() 131 triggerService.c_str(), e.what()); in match() 140 std::fprintf(stderr, "Job Finished %s %s: %s\n", triggerService.c_str(), in match() [all …]
|
/openbmc/openpower-proc-control/procedures/phal/ |
H A D | reinit_devtree.cpp | 51 auto ret = dtree_cronus_import(devtreeFile.c_str(), CEC_INFODB_PATH, in applyAttrOverride() 57 .c_str()); in applyAttrOverride() 82 log<level::ERR>(err.c_str()); in computeRODeviceTreePath() 91 log<level::ERR>(err.c_str()); in computeRODeviceTreePath() 145 .c_str()); in reinitDevtree() 154 FILE_Ptr fpExport(fopen(tmpFile.getPath().c_str(), "w+"), in reinitDevtree() 161 tmpFile.getPath().c_str()) in reinitDevtree() 162 .c_str()); in reinitDevtree() 176 .c_str()); in reinitDevtree() 187 FILE_Ptr fpImport(fopen(tmpFile.getPath().c_str(), "r"), FileCloser()); in reinitDevtree() [all …]
|
/openbmc/openpower-debug-collector/watchdog/ |
H A D | watchdog_dbus.cpp | 35 newMethod.append(path.c_str()); in dbusMethod() 55 bus.new_method_call(service.c_str(), path.c_str(), in dbusMethod() 56 interface.c_str(), function.c_str()); in dbusMethod() 62 bus.new_method_call(service.c_str(), path.c_str(), in dbusMethod() 63 extended.c_str(), function.c_str()); in dbusMethod() 73 lg2::info(traceMsgPath.c_str()); in dbusMethod() 75 lg2::info(traceMsgIface.c_str()); in dbusMethod()
|
/openbmc/witherspoon-pfault-analysis/ |
H A D | pmbus.cpp | 104 entry("PATH=%s", path.c_str())); in getDeviceName() 135 value = strtoul(val.c_str(), &err, 10); in readBit() 140 entry("FILE=%s", path.c_str()), in readBit() 141 entry("CONTENTS=%s", val.c_str())); in readBit() 152 entry("FILENAME=%s", path.c_str())); in readBit() 158 metadata::CALLOUT_DEVICE_PATH(fs::canonical(basePath).c_str())); in readBit() 190 entry("FILENAME=%s", path.c_str())); in read() 196 metadata::CALLOUT_DEVICE_PATH(fs::canonical(basePath).c_str())); in read() 221 entry("FILENAME=%s", path.c_str())); in readString() 227 metadata::CALLOUT_DEVICE_PATH(fs::canonical(basePath).c_str())); in readString() [all …]
|
/openbmc/openpower-proc-control/extensions/phal/ |
H A D | create_pel.cpp | 77 .c_str()); in getSBECallout() 110 bus.new_method_call(service.c_str(), loggingObjectPath, in createErrorPEL() 124 .c_str()); in createErrorPEL() 202 .c_str()); in createSbeErrorPEL() 210 bus.new_method_call(service.c_str(), loggingObjectPath, in createSbeErrorPEL() 231 .c_str()); in createSbeErrorPEL() 258 auto method = bus.new_method_call(service.c_str(), loggingObjectPath, in createPEL() 272 .c_str()); in createPEL() 282 .c_str()); in createPEL() 313 fileFD = mkostemp(const_cast<char*>(calloutFile.c_str()), O_RDWR); in createCalloutFile() [all …]
|
H A D | dump_utils.cpp | 49 status->c_str(), path.c_str()) in dumpStatusChanged() 50 .c_str()); in dumpStatusChanged() 76 path.c_str(), matchInterface.c_str()), in monitorDump() 107 .c_str()); in requestDump() 121 bus.new_method_call(service.c_str(), path, interface, function); in requestDump() 150 .c_str()); in requestDump() 159 .c_str()); in requestDump()
|
/openbmc/libpldm/tests/ |
H A D | instance-id.cpp | 17 EXPECT_EQ(::pldm_instance_db_init(nullptr, nonexistentDb.c_str()), -EINVAL); in TEST() 25 EXPECT_EQ(::pldm_instance_db_init(&db, nonexistentDb.c_str()), -EINVAL); in TEST() 69 EXPECT_EQ(pldm_instance_db_init(&db, dbPath.c_str()), -EINVAL); in TEST_F() 78 EXPECT_EQ(pldm_instance_db_init(&db, dbPath.c_str()), -EINVAL); in TEST_F() 85 EXPECT_EQ(pldm_instance_db_init(&db, dbPath.c_str()), 0); in TEST_F() 95 ASSERT_EQ(pldm_instance_db_init(&db, dbPath.c_str()), 0); in TEST_F() 109 ASSERT_EQ(pldm_instance_db_init(&db, dbPath.c_str()), 0); in TEST_F() 131 ASSERT_EQ(pldm_instance_db_init(&db, dbPath.c_str()), 0); in TEST_F() 159 ASSERT_EQ(pldm_instance_db_init(&connections[0].db, dbPath.c_str()), 0); in TEST_F() 163 ASSERT_EQ(pldm_instance_db_init(&connections[1].db, dbPath.c_str()), 0); in TEST_F() [all …]
|
/openbmc/phosphor-fan-presence/control/ |
H A D | main.cpp | 133 entry("PATH=%s", e.path.c_str()), in main() 134 entry("INTERFACE=%s", e.interface.c_str())); in main() 139 entry("BUSNAME=%s", e.busName.c_str()), in main() 140 entry("PATH=%s", e.path.c_str()), in main() 141 entry("INTERFACE=%s", e.interface.c_str()), in main() 142 entry("METHOD=%s", e.method.c_str())); in main() 147 entry("BUSNAME=%s", e.busName.c_str()), in main() 148 entry("PATH=%s", e.path.c_str()), in main() 149 entry("INTERFACE=%s", e.interface.c_str()), in main() 150 entry("PROPERTY=%s", e.property.c_str())); in main()
|
/openbmc/phosphor-power/phosphor-power-supply/ |
H A D | power_supply.cpp | 48 std::format("{} gpioLineName: {}", shortName, gpioLineName).c_str()); in PowerSupply() 133 .c_str()); in bindOrUnbindDriver() 140 .c_str()); in bindOrUnbindDriver() 160 .c_str()); in bindOrUnbindDriver() 177 .c_str()); in updatePresence() 199 std::format("presenceGPIO read fail: {}", e.what()).c_str()); in updatePresenceGPIO() 207 .c_str()); in updatePresenceGPIO() 255 .c_str()); in analyzeCMLFault() 279 .c_str()); in analyzeInputFault() 295 .c_str()); in analyzeInputFault() [all …]
|
/openbmc/phosphor-power/ |
H A D | pmbus.cpp | 106 .c_str()); in getDeviceName() 137 value = strtoul(val.c_str(), &err, 10); in readBit() 144 .c_str()); in readBit() 158 .c_str()); in readBit() 164 metadata::CALLOUT_DEVICE_PATH(fs::canonical(basePath).c_str())); in readBit() 201 .c_str()); in read() 207 metadata::CALLOUT_DEVICE_PATH(fs::canonical(basePath).c_str())); in read() 239 .c_str()); in readString() 245 metadata::CALLOUT_DEVICE_PATH(fs::canonical(basePath).c_str())); in readString() 258 std::unique_ptr<FILE, FileCloser> file{fopen(path.c_str(), "rb")}; in readBinary() [all …]
|
/openbmc/phosphor-led-manager/ |
H A D | utils.cpp | 52 auto method = bus.new_method_call(service.c_str(), objectPath.c_str(), in getAllProperties() 76 auto method = bus.new_method_call(service.c_str(), objectPath.c_str(), in getProperty() 98 auto method = bus.new_method_call(service.c_str(), objectPath.c_str(), in setProperty() 100 method.append(interface.c_str(), propertyName.c_str(), value); in setProperty() 114 method.append(objectPath.c_str()); in getSubTreePaths()
|
/openbmc/phosphor-dbus-monitor/src/ |
H A D | sdbusplus.hpp | 47 busName.c_str(), path.c_str(), interface.c_str(), method.c_str()); in callMethodNoReply() 63 busName.c_str(), path.c_str(), interface.c_str(), method.c_str()); in callMethod()
|
/openbmc/hiomapd/vpnor/ |
H A D | partition.cpp | 91 partition.data.name, dst.c_str(), src.c_str()); in getPartitionFilePath() 139 path.c_str(), offset, dst, len); in read() 146 int fd = ::open(path.c_str(), O_RDONLY); in read() 149 MSG_ERR("Failed to open backing file at '%s': %d\n", path.c_str(), in read() 160 path.c_str(), fileSize, lerrno); in read() 173 len, access_len, path.c_str(), fileSize, offset, lerrno); in read() 202 path.c_str(), offset, dst, len); in write() 204 int fd = ::open(path.c_str(), O_RDWR); in write() 207 MSG_ERR("Failed to open backing file at '%s': %d\n", path.c_str(), in write() 217 MSG_ERR("Failed to seek to %zu in %s: %d\n", offset, path.c_str(), in write() [all …]
|
/openbmc/openpower-vpd-parser/vpd-manager/src/ |
H A D | event_logger.cpp | 119 "Create", NULL, NULL, "ssa{ss}", l_message.c_str(), in createAsyncPelWithInventoryCallout() 120 l_severity.c_str(), l_additionalDataCount, "FileName", in createAsyncPelWithInventoryCallout() 121 i_fileName.c_str(), "FunctionName", i_funcName.c_str(), in createAsyncPelWithInventoryCallout() 122 "InternalRc", std::to_string(i_internalRc).c_str(), "DESCRIPTION", in createAsyncPelWithInventoryCallout() 123 l_description.c_str(), "UserData1", l_userData1.c_str(), in createAsyncPelWithInventoryCallout() 124 "UserData2", l_userData2.c_str(), "CALLOUT_INVENTORY_PATH", in createAsyncPelWithInventoryCallout() 125 get<0>(l_invCallout).c_str(), "CALLOUT_PRIORITY", in createAsyncPelWithInventoryCallout() 126 l_priority.c_str()); in createAsyncPelWithInventoryCallout() 222 "Create", NULL, NULL, "ssa{ss}", l_message.c_str(), in createAsyncPel() 223 l_severity.c_str(), constants::VALUE_6, "FileName", in createAsyncPel() [all …]
|
/openbmc/phosphor-hwmon/ |
H A D | gpio_handle.cpp | 20 unsigned long chipId = std::strtoul(gpiochip.c_str(), &gpioEnd, 10); in BuildGpioHandle() 21 unsigned long lineOffset = std::strtoul(line.c_str(), &lineEnd, 10); in BuildGpioHandle() 23 if (!gpioEnd || gpioEnd != &gpiochip.c_str()[gpiochip.length()]) in BuildGpioHandle() 26 entry("GPIOCHIP=%s", gpiochip.c_str())); in BuildGpioHandle() 30 if (!lineEnd || lineEnd != &line.c_str()[line.length()]) in BuildGpioHandle() 33 entry("LINE=%s", line.c_str())); in BuildGpioHandle()
|
/openbmc/phosphor-bmc-code-mgmt/bmc/ |
H A D | image_manager.cpp | 89 report<ManifestFileFailure>(ManifestFail::PATH(tarFilePath.c_str())); in processImage() 123 report<ManifestFileFailure>(ManifestFail::PATH(tarFilePath.c_str())); in processImage() 133 report<ManifestFileFailure>(ManifestFail::PATH(tarFilePath.c_str())); in processImage() 161 ImageFail::PATH(manifestPath.string().c_str())); in processImage() 170 ImageFail::PATH(manifestPath.string().c_str())); in processImage() 179 report<ManifestFileFailure>(ManifestFail::PATH(tarFilePath.c_str())); in processImage() 267 report<UnTarFailure>(UnTarFail::PATH(tarFilePath.c_str())); in unTar() 273 report<UnTarFailure>(UnTarFail::PATH(extractDirPath.c_str())); in unTar() 285 execl("/bin/tar", "tar", "-xf", tarFilePath.c_str(), "-C", in unTar() 286 extractDirPath.c_str(), (char*)0); in unTar() [all …]
|
/openbmc/entity-manager/src/ |
H A D | entity_manager.hpp | 147 sd_journal_send("MESSAGE=Inventory Added: %s", name.c_str(), "PRIORITY=%i", in logDeviceAdded() 150 "REDFISH_MESSAGE_ARGS=%s,%s,%s", model.c_str(), in logDeviceAdded() 151 type.c_str(), sn.c_str(), "NAME=%s", name.c_str(), NULL); in logDeviceAdded() 201 sd_journal_send("MESSAGE=Inventory Removed: %s", name.c_str(), in logDeviceRemoved() 204 "REDFISH_MESSAGE_ARGS=%s,%s,%s", model.c_str(), in logDeviceRemoved() 205 type.c_str(), sn.c_str(), "NAME=%s", name.c_str(), NULL); in logDeviceRemoved()
|
/openbmc/openpower-sbe-interface/ |
H A D | sbe_chipOp_handler.cpp | 47 throw std::runtime_error(errMsg.str().c_str()); in writeToFifo() 53 throw std::runtime_error(errMsg.str().c_str()); in writeToFifo() 65 throw std::runtime_error(errMsg.str().c_str()); in writeToFifo() 75 throw std::runtime_error(errMsg.str().c_str()); in writeToFifo() 81 throw std::runtime_error(errMsg.str().c_str()); in writeToFifo() 96 throw std::runtime_error(errMsg.str().c_str()); in writeToFifo() 128 throw std::runtime_error(errMsg.str().c_str()); in parseResponse() 151 throw std::runtime_error(errMsg.str().c_str()); in parseResponse() 177 throw std::runtime_error(errMsg.str().c_str()); in parseResponse()
|
/openbmc/telemetry/src/ |
H A D | trigger_actions.cpp | 63 phosphor::logging::log<phosphor::logging::level::INFO>(msg.c_str()); in commit() 117 sensorName.c_str(), value, in commit() 118 triggerId.c_str())); in commit() 126 sensorName.c_str(), value, threshold, in commit() 127 triggerId.c_str())); in commit() 183 phosphor::logging::log<phosphor::logging::level::INFO>(msg.c_str()); in commit() 199 sensorName.c_str(), value.c_str(), in commit() 200 triggerId.c_str())); in commit() 249 phosphor::logging::log<phosphor::logging::level::INFO>(msg.c_str()); in commit() 265 sensorName.c_str(), value.c_str(), in commit() [all …]
|
/openbmc/phosphor-logging/test/ |
H A D | remote_logging_test_config.cpp | 32 EXPECT_EQ(getConfig(configFilePath.c_str()), "*.* /dev/null"); in TEST_F() 38 EXPECT_EQ(getConfig(configFilePath.c_str()), "*.* /dev/null"); in TEST_F() 45 EXPECT_EQ(getConfig(configFilePath.c_str()), "*.* @@1.1.1.1:100"); in TEST_F() 52 EXPECT_EQ(getConfig(configFilePath.c_str()), "*.* @@1.1.1.1:100"); in TEST_F() 54 EXPECT_EQ(getConfig(configFilePath.c_str()), "*.* /dev/null"); in TEST_F() 61 EXPECT_EQ(getConfig(configFilePath.c_str()), "*.* @@1.1.1.1:100"); in TEST_F() 63 EXPECT_EQ(getConfig(configFilePath.c_str()), "*.* /dev/null"); in TEST_F() 70 EXPECT_EQ(getConfig(configFilePath.c_str()), "*.* @@[abcd:ef01::01]:50000"); in TEST_F() 167 EXPECT_EQ(getConfig(configFilePath.c_str()), "*.* @[abcd:ef01::01]:50000"); in TEST_F()
|
/openbmc/openpower-hw-diags/attn/ |
H A D | attn_dbus.cpp | 30 bus.new_method_call(service.c_str(), i_path.c_str(), in dbusMethod() 31 i_interface.c_str(), i_function.c_str()); in dbusMethod() 39 trace::inf(i_path.c_str()); in dbusMethod() 40 trace::inf(i_interface.c_str()); in dbusMethod() 64 trace::err("%s only %u of %u bytes written", filePath.c_str(), numBytes, in createPelRaw()
|
/openbmc/phosphor-mboxd/vpnor/ |
H A D | pnor_partition.cpp | 78 partition.data.name, dst.c_str(), src.c_str()); in getPartitionFilePath() 107 MSG_DBG("Resizing %s to %zu bytes\n", path.c_str(), maxAccess); in resize() 108 int rc = truncate(path.c_str(), maxAccess); in resize() 111 MSG_ERR("Failed to resize %s: %d\n", path.c_str(), errno); in resize() 126 int fd = ::open(path.c_str(), flags); in fulfil() 129 MSG_ERR("Failed to open backing file at '%s': %d\n", path.c_str(), in fulfil() 141 path.c_str(), fileSize, errno); in fulfil()
|