summaryrefslogtreecommitdiff
path: root/redfish-core/lib/ethernet.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/lib/ethernet.hpp')
-rw-r--r--redfish-core/lib/ethernet.hpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp
index 36873b9108..218affef39 100644
--- a/redfish-core/lib/ethernet.hpp
+++ b/redfish-core/lib/ethernet.hpp
@@ -499,9 +499,9 @@ inline void extractIPV6Data(const std::string& ethifaceId,
}
else
{
- BMCWEB_LOG_ERROR
- << "Got extra property: " << property.first
- << " on the " << objpath.first.str << " object";
+ BMCWEB_LOG_ERROR(
+ "Got extra property: {} on the {} object",
+ property.first, objpath.first.str);
}
}
}
@@ -593,9 +593,9 @@ inline void extractIPData(const std::string& ethifaceId,
}
else
{
- BMCWEB_LOG_ERROR
- << "Got extra property: " << property.first
- << " on the " << objpath.first.str << " object";
+ BMCWEB_LOG_ERROR(
+ "Got extra property: {} on the {} object",
+ property.first, objpath.first.str);
}
}
// Check if given address is local, or global
@@ -1047,7 +1047,7 @@ inline void setDHCPEnabled(const std::string& ifaceId,
[asyncResp](const boost::system::error_code& ec) {
if (ec)
{
- BMCWEB_LOG_ERROR << "D-Bus responses error: " << ec;
+ BMCWEB_LOG_ERROR("D-Bus responses error: {}", ec);
messages::internalError(asyncResp->res);
return;
}
@@ -1066,7 +1066,7 @@ inline void setEthernetInterfaceBoolProperty(
[asyncResp](const boost::system::error_code& ec) {
if (ec)
{
- BMCWEB_LOG_ERROR << "D-Bus responses error: " << ec;
+ BMCWEB_LOG_ERROR("D-Bus responses error: {}", ec);
messages::internalError(asyncResp->res);
return;
}
@@ -1076,7 +1076,7 @@ inline void setEthernetInterfaceBoolProperty(
inline void setDHCPv4Config(const std::string& propertyName, const bool& value,
const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
{
- BMCWEB_LOG_DEBUG << propertyName << " = " << value;
+ BMCWEB_LOG_DEBUG("{} = {}", propertyName, value);
sdbusplus::asio::setProperty(
*crow::connections::systemBus, "xyz.openbmc_project.Network",
"/xyz/openbmc_project/network/dhcp",
@@ -1084,7 +1084,7 @@ inline void setDHCPv4Config(const std::string& propertyName, const bool& value,
[asyncResp](const boost::system::error_code& ec) {
if (ec)
{
- BMCWEB_LOG_ERROR << "D-Bus responses error: " << ec;
+ BMCWEB_LOG_ERROR("D-Bus responses error: {}", ec);
messages::internalError(asyncResp->res);
return;
}
@@ -1191,14 +1191,14 @@ inline void handleDHCPPatch(const std::string& ifaceId,
nextUseDomain = ethData.hostNameEnabled;
}
- BMCWEB_LOG_DEBUG << "set DHCPEnabled...";
+ BMCWEB_LOG_DEBUG("set DHCPEnabled...");
setDHCPEnabled(ifaceId, "DHCPEnabled", nextv4DHCPState, nextv6DHCPState,
asyncResp);
- BMCWEB_LOG_DEBUG << "set DNSEnabled...";
+ BMCWEB_LOG_DEBUG("set DNSEnabled...");
setDHCPv4Config("DNSEnabled", nextDNS, asyncResp);
- BMCWEB_LOG_DEBUG << "set NTPEnabled...";
+ BMCWEB_LOG_DEBUG("set NTPEnabled...");
setDHCPv4Config("NTPEnabled", nextNTP, asyncResp);
- BMCWEB_LOG_DEBUG << "set HostNameEnabled...";
+ BMCWEB_LOG_DEBUG("set HostNameEnabled...");
setDHCPv4Config("HostNameEnabled", nextUseDomain, asyncResp);
}
@@ -1707,7 +1707,7 @@ inline void afterDelete(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
messages::internalError(asyncResp->res);
return;
}
- BMCWEB_LOG_DEBUG << "DBus error: " << dbusError->name;
+ BMCWEB_LOG_DEBUG("DBus error: {}", dbusError->name);
if (std::string_view("org.freedesktop.DBus.Error.UnknownObject") ==
dbusError->name)
@@ -1741,7 +1741,7 @@ inline void afterVlanCreate(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
messages::internalError(asyncResp->res);
return;
}
- BMCWEB_LOG_DEBUG << "DBus error: " << dbusError->name;
+ BMCWEB_LOG_DEBUG("DBus error: {}", dbusError->name);
if (std::string_view(
"xyz.openbmc_project.Common.Error.ResourceNotFound") ==
@@ -1856,7 +1856,7 @@ inline void requestEthernetInterfacesRoutes(App& app)
"Links/RelatedInterfaces/0/@odata.id");
return;
}
- BMCWEB_LOG_INFO << "Parent Interface URI: " << parentInterfaceUri;
+ BMCWEB_LOG_INFO("Parent Interface URI: {}", parentInterfaceUri);
boost::urls::result<boost::urls::url_view> parsedUri =
boost::urls::parse_relative_ref(parentInterfaceUri);