Update Journal Variable Names
Journal entry variable names should be uppercase.
https://www.freedesktop.org/software/systemd/man/sd_journal_print.html
Change-Id: Id7a3f72b5079302759e0855665d241f1f28d9544
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/sd_event_loop.cpp b/sd_event_loop.cpp
index d4dc456..0d8b323 100644
--- a/sd_event_loop.cpp
+++ b/sd_event_loop.cpp
@@ -63,7 +63,7 @@
if (ioctl(fd, FIONREAD, &readSize) < 0)
{
log<level::ERR>("ioctl failed for FIONREAD:",
- entry("errno = %d", errno));
+ entry("ERRNO=%d", errno));
return 0;
}
@@ -324,7 +324,7 @@
if (rc < 0)
{
log<level::ERR>("Failed to setup the accumulate timer",
- entry("RC = %d", rc));
+ entry("RC=%d", rc));
throw std::runtime_error("Failed to setup accumulate timer");
}
@@ -339,7 +339,7 @@
if (rc < 0)
{
log<level::ERR>("Failed to setup the retry timer",
- entry("RC = %d", rc));
+ entry("RC=%d", rc));
throw std::runtime_error("Failed to setup retry timer");
}
@@ -348,7 +348,7 @@
if (rc < 0)
{
log<level::ERR>("Failed to enable the accumulate timer",
- entry("rc = %d", rc));
+ entry("RC=%d", rc));
throw std::runtime_error("Failed to enable accumulate timer");
}
@@ -357,7 +357,7 @@
if (rc < 0)
{
log<level::ERR>("Failed to disable the retry timer",
- entry("RC = %d", rc));
+ entry("RC=%d", rc));
throw std::runtime_error("Failed to disable retry timer");
}
@@ -380,7 +380,7 @@
if (iter == payloadInfo.end())
{
log<level::ERR>("SOL Payload instance not found",
- entry("payloadInst=%d", payloadInst));
+ entry("PAYLOADINST=%d", payloadInst));
throw std::runtime_error("SOL payload instance not found");
}
@@ -421,7 +421,7 @@
if (iter == payloadInfo.end())
{
log<level::ERR>("SOL Payload instance not found",
- entry("payloadInst=%d", payloadInst));
+ entry("PAYLOADINST=%d", payloadInst));
throw std::runtime_error("SOL Payload instance not found");
}