trace cleanup for CI script on Ubuntu PPC machines
The Jenkins CI script on Ubuntu 20.04 (ppc64le), threw some errors that
forbids converting a string constant {aka 'char*'} to 'va_list'.
Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
Change-Id: Idee72328e4310bf7cbcd02df4976e5b435c3767c
diff --git a/attn/attn_logging.cpp b/attn/attn_logging.cpp
index 3141130..20550a1 100644
--- a/attn/attn_logging.cpp
+++ b/attn/attn_logging.cpp
@@ -123,7 +123,7 @@
{
// The entry with key "Subsystem" does not exist in the additional map.
// Log the error, create failure event, and return.
- trace::err("Error the key %s does not exist in the map.", "Subsystem");
+ trace::err("Error the key Subsystem does not exist in the map.");
eventAttentionFail((int)AttnSection::attnLogging | ATTN_INVALID_KEY);
return;
}
@@ -172,8 +172,7 @@
{
// The entry with key "Subsystem" does not exist in the additional
// map. Log the error, create failure event, and return.
- trace::err("Error the key %s does not exist in the map.",
- "SrcAscii");
+ trace::err("Error the key SrcAscii does not exist in the map.");
eventAttentionFail((int)AttnSection::attnLogging |
ATTN_INVALID_KEY);
return;
@@ -232,8 +231,7 @@
{
// The entry with key "Subsystem" does not exist in the additional
// map. Log the error, create failure event, and return.
- trace::err("Error the key %s does not exist in the map.",
- "SrcAscii");
+ trace::err("Error the key SrcAscii does not exist in the map.");
eventAttentionFail((int)AttnSection::attnLogging |
ATTN_INVALID_KEY);
return;
@@ -391,8 +389,8 @@
// The entry with key "Subsystem" does not exist in the
// additional map. Log the error, create failure event, and
// return.
- trace::err("Error the key %s does not exist in the map.",
- "Subsystem");
+ trace::err(
+ "Error the key Subsystem does not exist in the map.");
eventAttentionFail((int)AttnSection::attnLogging |
ATTN_INVALID_KEY);
return 0;
@@ -444,8 +442,7 @@
{
// The entry with key "Subsystem" does not exist in the additional
// map. Log the error, create failure event, and return.
- trace::err("Error the key %s does not exist in the map.",
- "Subsystem");
+ trace::err("Error the key Subsystem does not exist in the map.");
eventAttentionFail((int)AttnSection::attnLogging |
ATTN_INVALID_KEY);
return;