Update Journal Variable Names
Journal entry variable names should be uppercase.
https://www.freedesktop.org/software/systemd/man/sd_journal_print.html
Also, fixed indentation.
Change-Id: I2c838332ab7811ccc9a2c99f5b1f558c48f25f76
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/sensorhandler.cpp b/sensorhandler.cpp
index 04402c1..582f16b 100644
--- a/sensorhandler.cpp
+++ b/sensorhandler.cpp
@@ -703,7 +703,8 @@
&raw_cstr))
{
log<level::WARNING>("Unit interface missing.",
- entry("bus=%s, path=%s", iface.bus, iface.path));
+ entry("BUS=%s", iface.bus),
+ entry("PATH=%s", iface.path));
}
else
{
@@ -766,7 +767,8 @@
'x',
&result)) {
log<level::WARNING>("Scale interface missing.",
- entry("bus=%s, path=%s", iface.bus, iface.path));
+ entry("BUS=%s", iface.bus),
+ entry("PATH=%s", iface.path));
}
}