summaryrefslogtreecommitdiffstats
path: root/tools/phosphor-logging
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2017-02-19 13:45:42 -0600
committerAdriana Kobylak <anoo@us.ibm.com>2017-02-28 10:47:37 -0600
commit371a38b7b6e8ea8ffce2d4bf245445c6cd0f5c4e (patch)
tree489bde3462ff3cf1ec395ff827c7bb899bec3222 /tools/phosphor-logging
parent6a9db6e414a7df7b616c33f04d0bbe224689180a (diff)
downloadphosphor-logging-371a38b7b6e8ea8ffce2d4bf245445c6cd0f5c4e.tar.gz
phosphor-logging-371a38b7b6e8ea8ffce2d4bf245445c6cd0f5c4e.zip
elog-gen.py: Dynamically determine the namespaces
Namespaces should be determined by the directory tree where the yaml files are located. Change-Id: I82729728b6aebf4c48a0ec967f2d08c1cbf8b7f3 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Diffstat (limited to 'tools/phosphor-logging')
-rw-r--r--tools/phosphor-logging/templates/elog-gen-template.mako.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/phosphor-logging/templates/elog-gen-template.mako.hpp b/tools/phosphor-logging/templates/elog-gen-template.mako.hpp
index f0b0818..097b865 100644
--- a/tools/phosphor-logging/templates/elog-gen-template.mako.hpp
+++ b/tools/phosphor-logging/templates/elog-gen-template.mako.hpp
@@ -17,7 +17,7 @@ namespace logging
% for index, name in enumerate(errors):
<%
- namespaces = error_namespace.split('/')
+ namespaces = error_namespace[name].split('/')
## In case someone provided a error_namespace ending with '/', remove the
## last split string, which would be an empty string.
if not namespaces[-1]:
OpenPOWER on IntegriCloud