Update Journal Variable Names in utils.cpp
Journal entry variable names should be uppercase.
https://www.freedesktop.org/software/systemd/man/sd_journal_print.html
Also fixed indentation.
Change-Id: I02d30971123c2bb526f19e00b534e06fbcd9ee59
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/utils.cpp b/utils.cpp
index 82497a3..81fd919 100644
--- a/utils.cpp
+++ b/utils.cpp
@@ -161,9 +161,9 @@
if (reply.is_method_error())
{
log<level::ERR>("Failed to get property",
- entry("PROPERTY=%s", property.c_str()),
- entry("PATH=%s", objPath.c_str()),
- entry("INTERFACE=%s", interface.c_str()));
+ entry("PROPERTY=%s", property.c_str()),
+ entry("PATH=%s", objPath.c_str()),
+ entry("INTERFACE=%s", interface.c_str()));
elog<InternalFailure>();
}
@@ -192,8 +192,8 @@
if (reply.is_method_error())
{
log<level::ERR>("Failed to get all properties",
- entry("PATH=%s", objPath.c_str()),
- entry("INTERFACE=%s", interface.c_str()));
+ entry("PATH=%s", objPath.c_str()),
+ entry("INTERFACE=%s", interface.c_str()));
elog<InternalFailure>();
}
@@ -354,7 +354,7 @@
log<level::ERR>("Error in mapper call",
entry("PATH=%s", path.c_str()),
entry("INTERFACES=%s",
- convertToString(interfaces).c_str()));
+ convertToString(interfaces).c_str()));
elog<InternalFailure>();
}
@@ -367,7 +367,7 @@
log<level::ERR>("No Object has implemented the interface",
entry("PATH=%s", path.c_str()),
entry("INTERFACES=%s",
- convertToString(interfaces).c_str()));
+ convertToString(interfaces).c_str()));
elog<InternalFailure>();
}
@@ -522,7 +522,7 @@
{
log<level::ERR>("Exception occured during getVLAN",
entry("PATH=%s",path.c_str()),
- entry("EXCEPTIOn=%s", e.what()));
+ entry("EXCEPTION=%s", e.what()));
}
return vlanID;
}