Update Journal Variable Names
Journal entry variable names should be uppercase.
https://www.freedesktop.org/software/systemd/man/sd_journal_print.html
Change-Id: I074955883c67173c9720f094d494addb85c85e7a
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/core_manager_main.cpp b/core_manager_main.cpp
index 1f9d195..4ef6095 100644
--- a/core_manager_main.cpp
+++ b/core_manager_main.cpp
@@ -18,7 +18,7 @@
if (rc < 0)
{
log<level::ERR>("Error occurred during the sd_event_default",
- entry("rc=%d", rc));
+ entry("RC=%d", rc));
report<InternalFailure>();
return -1;
}
@@ -33,7 +33,7 @@
if (rc < 0)
{
log<level::ERR>("Error occurred during the sd_event_loop",
- entry("rc=%d", rc));
+ entry("RC=%d", rc));
elog<InternalFailure>();
}
}
diff --git a/dump_manager.cpp b/dump_manager.cpp
index 28d3b77..4d0904c 100644
--- a/dump_manager.cpp
+++ b/dump_manager.cpp
@@ -90,7 +90,7 @@
{
// Failed to add to event loop
log<level::ERR>("Error occurred during the sd_event_add_child call",
- entry("rc=%d", rc));
+ entry("RC=%d", rc));
elog<InternalFailure>();
}
}
@@ -119,7 +119,7 @@
(match.size() > 0)))
{
log<level::ERR>("Invalid Dump file name",
- entry("Filename=%s", file.filename()));
+ entry("FILENAME=%s", file.filename()));
return;
}
diff --git a/dump_manager_main.cpp b/dump_manager_main.cpp
index c437e7f..174adc3 100644
--- a/dump_manager_main.cpp
+++ b/dump_manager_main.cpp
@@ -20,7 +20,7 @@
if (rc < 0)
{
log<level::ERR>("Error occurred during the sd_event_default",
- entry("rc=%d", rc));
+ entry("RC=%d", rc));
report<InternalFailure>();
return rc;
}
@@ -44,7 +44,7 @@
if (rc < 0)
{
log<level::ERR>("Error occurred during the sd_event_loop",
- entry("rc=%d", rc));
+ entry("RC=%d", rc));
elog<InternalFailure>();
}
}
diff --git a/watch.cpp b/watch.cpp
index cec97af..270d1dc 100644
--- a/watch.cpp
+++ b/watch.cpp
@@ -39,7 +39,7 @@
if (!fs::is_directory(path))
{
log<level::ERR>("Watch directory doesn't exist",
- entry("dir=%s", path.c_str()));
+ entry("DIR=%s", path.c_str()));
elog<InternalFailure>();
}
@@ -62,7 +62,7 @@
{
// Failed to add to event loop
log<level::ERR>("Error occurred during the sd_event_add_io call",
- entry("rc=%d", rc));
+ entry("RC=%d", rc));
elog<InternalFailure>();
}
}