summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarri Devender Rao <devenrao@in.ibm.com>2017-04-04 03:43:00 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-04-12 20:54:46 +0000
commit7d0a07ba3205807b5c2f5c84261d7a9cc295decb (patch)
tree6f27e0f73485cf5fb90db1ea947ccd8766bcd891 /tools
parent8110ca6d243bbec89e5ce3be644883bf0dadd23d (diff)
downloadphosphor-logging-7d0a07ba3205807b5c2f5c84261d7a9cc295decb.tar.gz
phosphor-logging-7d0a07ba3205807b5c2f5c84261d7a9cc295decb.zip
Add new commit API and deprecate older commit method
Added new commit method that accepts an sdbusplus exception Deprecate commit which accepts an exception name Change-Id: I9b5c91eb13466eb576c329ebb7fd00ce33f7dd9f Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/phosphor-logging/templates/elog-gen-template.mako.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/phosphor-logging/templates/elog-gen-template.mako.hpp b/tools/phosphor-logging/templates/elog-gen-template.mako.hpp
index 7ee4268..6a3ffbf 100644
--- a/tools/phosphor-logging/templates/elog-gen-template.mako.hpp
+++ b/tools/phosphor-logging/templates/elog-gen-template.mako.hpp
@@ -104,8 +104,8 @@ struct ${b}
%>
struct ${error_type}
{
- static constexpr auto err_code = "${name}";
- static constexpr auto err_msg = "${error_msg[name]}";
+ static constexpr auto errName = "${name}";
+ static constexpr auto errDesc = "${error_msg[name]}";
static constexpr auto L = level::${error_lvl[name]};
% for b in meta_list:
using ${b} = _${classname}::${b};
@@ -117,17 +117,17 @@ struct ${error_type}
const char* name() const noexcept
{
- return err_code;
+ return errName;
}
const char* description() const noexcept
{
- return err_msg;
+ return errDesc;
}
const char* what() const noexcept
{
- return err_code;
+ return errName;
}
};
OpenPOWER on IntegriCloud