summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2017-10-19 16:36:45 -0500
committerGunnar Mills <gmills@us.ibm.com>2017-10-19 16:38:11 -0500
commite4050f298e996e2980434be08895814709298b2f (patch)
tree6ca8d992bf7cf3f8a617e80a833948c7ab2d42e6
parente8939395406a6e600df0ed8fc8069a7daa4fed7f (diff)
downloadphosphor-host-ipmid-e4050f298e996e2980434be08895814709298b2f.tar.gz
phosphor-host-ipmid-e4050f298e996e2980434be08895814709298b2f.zip
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>
-rw-r--r--read_fru_data.cpp4
-rw-r--r--sensorhandler.cpp6
-rw-r--r--storagehandler.cpp5
3 files changed, 9 insertions, 6 deletions
diff --git a/read_fru_data.cpp b/read_fru_data.cpp
index a7a3256..510f0af 100644
--- a/read_fru_data.cpp
+++ b/read_fru_data.cpp
@@ -55,8 +55,8 @@ ipmi::PropertyMap readAllProperties(const std::string& intf,
{
//If property is not found simply return empty value
log<level::ERR>("Error in reading property values from inventory",
- entry("Interface=%s", intf),
- entry("Path=%s", objPath));
+ entry("INTERFACE=%s", intf),
+ entry("PATH=%s", objPath));
return properties;
}
reply.read(properties);
diff --git a/sensorhandler.cpp b/sensorhandler.cpp
index 04402c1..582f16b 100644
--- a/sensorhandler.cpp
+++ b/sensorhandler.cpp
@@ -703,7 +703,8 @@ void setUnitFieldsForObject(sd_bus *bus,
&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 @@ int64_t getScaleForObject(sd_bus *bus,
'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));
}
}
diff --git a/storagehandler.cpp b/storagehandler.cpp
index 123398b..8d9e93d 100644
--- a/storagehandler.cpp
+++ b/storagehandler.cpp
@@ -634,8 +634,9 @@ ipmi_ret_t ipmi_storage_read_fru_data(
if ((offset + reqptr->count) > size)
{
log<level::ERR>("Invalid offset and count",
- entry("Offset=%d Count=%d SizeOfFruArea=%d",
- offset, reqptr->count, size));
+ entry("OFFSET=%s", offset),
+ entry("COUNT=%s", reqptr->count),
+ entry("SIZE_OF_FRU_AREA=%s", size));
return IPMI_CC_INVALID;
}
std::copy((fruArea.begin() + offset), (fruArea.begin() + reqptr->count),
OpenPOWER on IntegriCloud