summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>2020-01-17 12:17:47 +0530
committerTom Joseph <tomjoseph@in.ibm.com>2020-01-27 14:30:28 +0000
commit619ed5f85489a3ee54d8f8c39ad112b3477b069c (patch)
tree672118cb8d35320a0a24026f6c4536fd365abd1a
parent489a4ed9dc200db52e4e4cf5600b0367a29155f8 (diff)
downloadphosphor-host-ipmid-619ed5f85489a3ee54d8f8c39ad112b3477b069c.tar.gz
phosphor-host-ipmid-619ed5f85489a3ee54d8f8c39ad112b3477b069c.zip
[channel-mgmt]: Misc fixes for log messge tag.
Fixed wrong log entry tags to list the entries properly. Tested: Verified it is comming in journalctl logs Change-Id: I5352f9f87eb43414b4b04335ba43219e452785c6 Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
-rw-r--r--user_channel/channel_mgmt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/user_channel/channel_mgmt.cpp b/user_channel/channel_mgmt.cpp
index b56da33..c3994f1 100644
--- a/user_channel/channel_mgmt.cpp
+++ b/user_channel/channel_mgmt.cpp
@@ -142,7 +142,7 @@ std::string ChannelConfig::getChannelName(const uint8_t chNum)
if (!isValidChannel(chNum))
{
log<level::ERR>("Invalid channel number.",
- entry("ChannelID=%d", chNum));
+ entry("CHANNEL_ID=%d", chNum));
throw std::invalid_argument("Invalid channel number");
}
@@ -160,7 +160,7 @@ int ChannelConfig::convertToChannelNumberFromChannelName(
}
}
log<level::ERR>("Invalid channel name.",
- entry("Channel=%s", chName.c_str()));
+ entry("CHANNEL=%s", chName.c_str()));
throw std::invalid_argument("Invalid channel name");
return -1;
OpenPOWER on IntegriCloud